forked from Lainports/freebsd-ports
This seems to be the only piece of code in the entire ports tree which uses getpw(3) and it seems to be dead code anyway. Approved by: beat Feature safe: yes
19 lines
457 B
C
19 lines
457 B
C
--- netcmp/main.c
|
|
+++ netcmp/main.c
|
|
@@ -122,16 +122,6 @@
|
|
|
|
outfyle = NULL;
|
|
while (outfyle == NULL) {
|
|
- char username[100];
|
|
- char *tmp;
|
|
-
|
|
-#if defined(freebsd)
|
|
- getpwuid(getuid(), username);
|
|
-#else
|
|
- getpw(getuid(), username);
|
|
-#endif
|
|
- tmp = strchr(username,':');
|
|
- if (tmp != NULL) *tmp = '\0';
|
|
printf(" Enter output file name [info]: ");
|
|
fgets(command, 81, stdin);
|
|
TEMP = strchr(command, '\n');
|