X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=utils%2Fmountd%2Fv4root.c;h=81f813bde067777d4b357c86a2ea30a7d1bf0eee;hb=3d7faa0249332e23a2dc2e3e78020ed6bc66036a;hp=c33a5a9eb79d690580e81825de197d799d214ded;hpb=502eef09d8050ffb87d394397c2780e1ef042d68;p=nfs-utils.git diff --git a/utils/mountd/v4root.c b/utils/mountd/v4root.c index c33a5a9..81f813b 100644 --- a/utils/mountd/v4root.c +++ b/utils/mountd/v4root.c @@ -83,7 +83,7 @@ v4root_create(char *path, nfs_export *export) struct exportent *curexp = &export->m_export; dupexportent(&eep, &pseudo_root.m_export); - eep.e_hostname = strdup(curexp->e_hostname); + eep.e_hostname = curexp->e_hostname; strncpy(eep.e_path, path, sizeof(eep.e_path)); if (strcmp(path, "/") != 0) eep.e_flags &= ~NFSEXP_FSID;