提交 ae974a2b 编写于 作者: D Daniel P. Berrange

Fix bogus initialization in virFindFileInPath

上级 0420a032
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
......
......@@ -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];
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册