diff options
author | Daniel P. Berrange <berrange@redhat.com> | 2012-05-24 13:29:42 +0100 |
---|---|---|
committer | Daniel P. Berrange <berrange@redhat.com> | 2012-05-28 10:55:06 +0100 |
commit | 517368a3772f4196121881b1c7ec37acd225fece (patch) | |
tree | b31931d2025c4a4d6bb26b3a9f70e69a759adcbb /src/storage/storage_driver.c | |
parent | Fix typos in RPM dependencies (diff) | |
download | libvirt-517368a3772f4196121881b1c7ec37acd225fece.tar.gz libvirt-517368a3772f4196121881b1c7ec37acd225fece.tar.bz2 libvirt-517368a3772f4196121881b1c7ec37acd225fece.zip |
Remove uid param from directory lookup APIs
Remove the uid param from virGetUserConfigDirectory,
virGetUserCacheDirectory, virGetUserRuntimeDirectory,
and virGetUserDirectory
These functions were universally called with the
results of getuid() or geteuid(). To make it practical
to port to Win32, remove the uid parameter and hardcode
geteuid()
Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
Diffstat (limited to 'src/storage/storage_driver.c')
-rw-r--r-- | src/storage/storage_driver.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/storage/storage_driver.c b/src/storage/storage_driver.c index fd762c044..88f380906 100644 --- a/src/storage/storage_driver.c +++ b/src/storage/storage_driver.c @@ -145,8 +145,7 @@ storageDriverStartup(int privileged) if ((base = strdup (SYSCONFDIR "/libvirt")) == NULL) goto out_of_memory; } else { - uid_t uid = geteuid(); - base = virGetUserConfigDirectory(uid); + base = virGetUserConfigDirectory(); if (!base) goto error; } |