search for: a55af91

Displaying 2 results from an estimated 2 matches for "a55af91".

2010 Feb 23
0
[PATCH 2/3] nfsmount: s/PF_INET/AF_INET/
...ummypmap.c @@ -39,7 +39,7 @@ struct portmap_reply { static int bind_portmap(void) { - int sock = socket(PF_INET, SOCK_DGRAM, 0); + int sock = socket(AF_INET, SOCK_DGRAM, 0); struct sockaddr_in sin; if (sock < 0) diff --git a/usr/kinit/nfsmount/mount.c b/usr/kinit/nfsmount/mount.c index a55af91..f18cffa 100644 --- a/usr/kinit/nfsmount/mount.c +++ b/usr/kinit/nfsmount/mount.c @@ -290,9 +290,9 @@ int nfs_mount(const char *pathname, const char *hostname, mounted = 1; if (data->flags & NFS_MOUNT_TCP) { - sock = socket(PF_INET, SOCK_STREAM, IPPROTO_TCP); + sock = socket(AF_INET,...
2008 Jul 13
1
bunch of small fixes
...in failure path strerror(), beautifies error message: mount call failed: 13 -> mount call failed - server replied: Permission denied. Signed-off-by: maximilian attems <max at stro.at> diff --git a/usr/kinit/nfsmount/mount.c b/usr/kinit/nfsmount/mount.c index 066f6cd..a55af91 100644 --- a/usr/kinit/nfsmount/mount.c +++ b/usr/kinit/nfsmount/mount.c @@ -187,8 +187,8 @@ static int mount_call(uint32_t proc, uint32_t version, } if (mnt_reply.status != 0) { - fprintf(stderr, "mount call failed: %d\n", - ntohl(mnt_reply.status)); + fprintf(stderr, "mou...