On unix systems, when creating the default authentication token
[deb_libnfs.git] / lib / libnfs-zdr.c
index 24bf6c2bc38cf9d73d1cf24095e731794f32d534..29bb18daa280639c719da46b47f5a07288962308 100644 (file)
@@ -504,7 +504,7 @@ struct AUTH *libnfs_authunix_create(char *host, uint32_t uid, uint32_t gid, uint
 
 struct AUTH *libnfs_authunix_create_default(void)
 {
-       return libnfs_authunix_create("libnfs", getuid(), -1, 0, NULL);
+       return libnfs_authunix_create("libnfs", getuid(), getgid(), 0, NULL);
 }
 
 void libnfs_auth_destroy(struct AUTH *auth)