X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=lib%2Flibnfs-zdr.c;h=e904df9bf356fc28584de07808bc35cc17b15d7f;hb=67a9f57e67c3b2c147969c752532fd55eb99259c;hp=29bb18daa280639c719da46b47f5a07288962308;hpb=e083c2a0900ae13191b62a30db34fc5b57ce621b;p=deb_libnfs.git diff --git a/lib/libnfs-zdr.c b/lib/libnfs-zdr.c index 29bb18d..e904df9 100644 --- a/lib/libnfs-zdr.c +++ b/lib/libnfs-zdr.c @@ -504,7 +504,11 @@ struct AUTH *libnfs_authunix_create(char *host, uint32_t uid, uint32_t gid, uint struct AUTH *libnfs_authunix_create_default(void) { +#ifdef WIN32 + return libnfs_authunix_create("libnfs", 65535, 65535, 0, NULL); +#else return libnfs_authunix_create("libnfs", getuid(), getgid(), 0, NULL); +#endif } void libnfs_auth_destroy(struct AUTH *auth)