Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F107722434
D36757.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D36757.diff
View Options
diff --git a/include/rpc/auth.h b/include/rpc/auth.h
--- a/include/rpc/auth.h
+++ b/include/rpc/auth.h
@@ -279,11 +279,12 @@
* Netname manipulation routines.
*/
__BEGIN_DECLS
-extern int getnetname(char *);
-extern int host2netname(char *, const char *, const char *);
-extern int user2netname(char *, const uid_t, const char *);
-extern int netname2user(char *, uid_t *, gid_t *, int *, gid_t *);
-extern int netname2host(char *, char *, const int);
+extern int getnetname(char [MAXNETNAMELEN + 1]);
+extern int host2netname(char [MAXNETNAMELEN + 1], const char *, const char *);
+extern int user2netname(char [MAXNETNAMELEN + 1], const uid_t, const char *);
+extern int netname2user(char [MAXNETNAMELEN + 1], uid_t *, gid_t *, int *,
+ gid_t *);
+extern int netname2host(char [MAXNETNAMELEN + 1], char *, const int);
extern void passwd2des ( char *, char * );
__END_DECLS
diff --git a/lib/libc/rpc/netnamer.c b/lib/libc/rpc/netnamer.c
--- a/lib/libc/rpc/netnamer.c
+++ b/lib/libc/rpc/netnamer.c
@@ -64,7 +64,7 @@
static char *NETIDFILE = "/etc/netid";
static int getnetid( char *, char * );
-static int _getgroups( char *, gid_t * );
+static int _getgroups( char *, gid_t [NGRPS] );
/*
* Convert network-name into unix credential
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Jan 18, 7:22 PM (20 h, 28 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
15885743
Default Alt Text
D36757.diff (1 KB)
Attached To
Mode
D36757: libc rpc: Fix mismatches in prototypes for array bounds.
Attached
Detach File
Event Timeline
Log In to Comment