diff options
author | hjl <hjl> | 2000-01-10 22:31:41 +0000 |
---|---|---|
committer | hjl <hjl> | 2000-01-10 22:31:41 +0000 |
commit | 08f6b0ea56f96eac00b092c7d5e1f6486eb6f457 (patch) | |
tree | 3e3650828c221fbad22c4a897d392c82b39d414e /utils/mountd/mountd.c | |
parent | 1bae64b1475e9c1458582f26aa0e837edc4c6aca (diff) | |
download | nfs-utils-08f6b0ea56f96eac00b092c7d5e1f6486eb6f457.tar.gz nfs-utils-08f6b0ea56f96eac00b092c7d5e1f6486eb6f457.tar.xz nfs-utils-08f6b0ea56f96eac00b092c7d5e1f6486eb6f457.zip |
Mon Jan 10 14:26:33 2000 H.J. Lu <hjl@lucon.org>
* utils/mountd/auth.c (auth_authenticate_internal): Call
xstrdup for hostname before passing it to gethostbyname.
* utils/mountd/mountd.c (get_exportlist): Use xstrdup instead
of strdup.
Diffstat (limited to 'utils/mountd/mountd.c')
-rw-r--r-- | utils/mountd/mountd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/utils/mountd/mountd.c b/utils/mountd/mountd.c index 9f467d1..164983a 100644 --- a/utils/mountd/mountd.c +++ b/utils/mountd/mountd.c @@ -312,7 +312,7 @@ get_exportlist(void) e = (struct exportnode *) xmalloc(sizeof(*e)); e->ex_next = elist; e->ex_groups = NULL; - e->ex_dir = strdup(exp->m_export.m_path); + e->ex_dir = xstrdup(exp->m_export.m_path); elist = e; } |