=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/tcfs/Attic/tcfsputkey.c,v retrieving revision 1.7 retrieving revision 1.8 diff -u -r1.7 -r1.8 --- src/usr.bin/tcfs/Attic/tcfsputkey.c 2000/06/19 22:42:28 1.7 +++ src/usr.bin/tcfs/Attic/tcfsputkey.c 2000/06/19 23:06:25 1.8 @@ -1,4 +1,4 @@ -/* $OpenBSD: tcfsputkey.c,v 1.7 2000/06/19 22:42:28 aaron Exp $ */ +/* $OpenBSD: tcfsputkey.c,v 1.8 2000/06/19 23:06:25 aaron Exp $ */ /* * Transparent Cryptographic File System (TCFS) for NetBSD @@ -67,9 +67,11 @@ gid = atoi(optarg); if (!gid && optarg[0] != 0) { struct group *grp; + grp = (struct group *)getgrnam(optarg); if (!grp) - tcfs_error(ER_CUSTOM, "Nonexistant group\n"); + tcfs_error(ER_CUSTOM, + "Nonexistant group\n"); gid = grp->gr_gid; } break; @@ -117,7 +119,7 @@ if (!strlen(ginfo->gkey)) tcfs_error(ER_CUSTOM, "Invalid default key"); - tcfskey = (char*)malloc(UUKEYSIZE); + tcfskey = (char *)malloc(UUKEYSIZE); if (!tcfskey) tcfs_error(ER_MEM, NULL); @@ -152,7 +154,7 @@ if (!strlen(info->upw)) tcfs_error(ER_CUSTOM, "Invalid default key"); - tcfskey = (char*)malloc(UUKEYSIZE); + tcfskey = (char *)malloc(UUKEYSIZE); if (!tcfskey) tcfs_error(ER_MEM, NULL);