Fix bogus initialization in virFindFileInPath

This commit is contained in:
Daniel P. Berrange 2009-06-15 11:08:28 +00:00
parent 0420a03240
commit ae974a2bbf
2 changed files with 5 additions and 1 deletions

View File

@ -1,3 +1,7 @@
Mon Jun 15 12:05:22 BST 2009 Daniel P. Berrange <berrange@redhat.com>
* src/util.c: Fix bogus initialization in virFindFileInPath
Fri Jun 12 14:16:42 BST 2009 Daniel P. Berrange <berrange@redhat.com>
Remove use of getuid()==0 for privilege checks

View File

@ -1082,7 +1082,7 @@ int virFileResolveLink(const char *linkpath,
char *virFindFileInPath(const char *file)
{
char pathenv[PATH_MAX];
char *penv = &pathenv; /* this is for glibc 2.10 strsep chnages */
char *penv = pathenv;
char *pathseg;
char fullpath[PATH_MAX];