mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-31 18:15:25 +00:00
Fix bogus initialization in virFindFileInPath
This commit is contained in:
parent
0420a03240
commit
ae974a2bbf
@ -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>
|
Fri Jun 12 14:16:42 BST 2009 Daniel P. Berrange <berrange@redhat.com>
|
||||||
|
|
||||||
Remove use of getuid()==0 for privilege checks
|
Remove use of getuid()==0 for privilege checks
|
||||||
|
@ -1082,7 +1082,7 @@ int virFileResolveLink(const char *linkpath,
|
|||||||
char *virFindFileInPath(const char *file)
|
char *virFindFileInPath(const char *file)
|
||||||
{
|
{
|
||||||
char pathenv[PATH_MAX];
|
char pathenv[PATH_MAX];
|
||||||
char *penv = &pathenv; /* this is for glibc 2.10 strsep chnages */
|
char *penv = pathenv;
|
||||||
char *pathseg;
|
char *pathseg;
|
||||||
char fullpath[PATH_MAX];
|
char fullpath[PATH_MAX];
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user