From: Ben Gras Date: Sun, 27 Jun 2010 14:07:43 +0000 (+0000) Subject: no more minix whoami X-Git-Tag: v3.1.8~332 X-Git-Url: http://zhaoyanbai.com/repos/COPYRIGHT?a=commitdiff_plain;h=f1faf0d32735fe7f72cc3bae82561f4d319e16f4;p=minix.git no more minix whoami --- diff --git a/commands/Makefile b/commands/Makefile index 61b67c101..64041e296 100644 --- a/commands/Makefile +++ b/commands/Makefile @@ -16,7 +16,7 @@ SUBDIR= aal add_route adduser advent arp ash at autil awk \ hostaddr id ifconfig ifdef indent install \ intr ipcrm ipcs irdpd isoread join kill last leave \ less lex life loadkeys loadramdisk logger login look lp \ - lpd ls lspci M m4 mail make MAKEDEV man \ + lpd ls lspci M m4 mail make makewhatis MAKEDEV man \ mdb mdocml mesg mined mkdep mkdir mkdist mkfifo mkfs mknod \ mkproto modem mount mt netconf newroot nice nm nohup \ nonamed od packit packman passwd paste patch pax \ @@ -31,7 +31,7 @@ SUBDIR= aal add_route adduser advent arp ash at autil awk \ telnetd term termcap tget time tinyhalt top touch tr \ truncate tsort ttt tty udpstat umount uname unexpand \ uniq unstack update urlget uud uue version vol wc \ - whereis which who whoami write writeisofs \ + whereis which who write writeisofs \ xargs yacc yes zdump zic zmodem .if ${ARCH} == "i386" diff --git a/commands/whoami/Makefile b/commands/whoami/Makefile deleted file mode 100644 index a53e128ee..000000000 --- a/commands/whoami/Makefile +++ /dev/null @@ -1,4 +0,0 @@ -PROG= whoami -MAN= - -.include diff --git a/commands/whoami/whoami.c b/commands/whoami/whoami.c deleted file mode 100644 index 99ec440cb..000000000 --- a/commands/whoami/whoami.c +++ /dev/null @@ -1,19 +0,0 @@ -/* whoami - print the current user name Author: Terrence W. Holm */ - -#include -#include -#include -#include -#include - -_PROTOTYPE(int main, (void)); - -int main() -{ - struct passwd *pw_entry; - - pw_entry = getpwuid(geteuid()); - if (pw_entry == NULL) exit(1); - puts(pw_entry->pw_name); - return(0); -}