diff options
Diffstat (limited to 'contrib/smbfs/smbutil/smbutil.c')
-rw-r--r-- | contrib/smbfs/smbutil/smbutil.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/contrib/smbfs/smbutil/smbutil.c b/contrib/smbfs/smbutil/smbutil.c index d66003f..4d14f9e 100644 --- a/contrib/smbfs/smbutil/smbutil.c +++ b/contrib/smbfs/smbutil/smbutil.c @@ -64,10 +64,9 @@ cmd_crypt(int argc, char *argv[]) psw = getpass("Password:"); else psw = argv[1]; - cp = malloc(strlen(psw + 4)); + cp = smb_simplecrypt(NULL, psw); if (cp == NULL) errx(EX_DATAERR, "out of memory"); - smb_simplecrypt(cp, psw); printf("%s\n", cp); free(cp); exit(0); @@ -97,6 +96,11 @@ main(int argc, char *argv[]) struct commands *cmd; char *cp; int opt; +#ifdef APPLE + extern void dropsuid(); + + dropsuid(); +#endif /* APPLE */ if (argc < 2) help(); |