no more minix whoami
This commit is contained in:
		
							parent
							
								
									1f20814fe8
								
							
						
					
					
						commit
						f1faf0d327
					
				@ -16,7 +16,7 @@ SUBDIR=	aal add_route adduser advent arp ash at autil awk \
 | 
				
			|||||||
	hostaddr id ifconfig ifdef indent install \
 | 
						hostaddr id ifconfig ifdef indent install \
 | 
				
			||||||
	intr ipcrm ipcs irdpd isoread join kill last leave \
 | 
						intr ipcrm ipcs irdpd isoread join kill last leave \
 | 
				
			||||||
	less lex life loadkeys loadramdisk logger login look lp \
 | 
						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 \
 | 
						mdb mdocml mesg mined mkdep mkdir mkdist mkfifo mkfs mknod \
 | 
				
			||||||
	mkproto modem mount mt netconf newroot nice nm nohup \
 | 
						mkproto modem mount mt netconf newroot nice nm nohup \
 | 
				
			||||||
	nonamed od packit packman passwd paste patch pax \
 | 
						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 \
 | 
						telnetd term termcap tget time tinyhalt top touch tr \
 | 
				
			||||||
	truncate tsort ttt tty udpstat umount uname unexpand \
 | 
						truncate tsort ttt tty udpstat umount uname unexpand \
 | 
				
			||||||
	uniq unstack update urlget uud uue version vol wc \
 | 
						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
 | 
						xargs yacc yes zdump zic zmodem
 | 
				
			||||||
 | 
					
 | 
				
			||||||
.if ${ARCH} == "i386"
 | 
					.if ${ARCH} == "i386"
 | 
				
			||||||
 | 
				
			|||||||
@ -1,4 +0,0 @@
 | 
				
			|||||||
PROG=	whoami
 | 
					 | 
				
			||||||
MAN=
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
.include <bsd.prog.mk>
 | 
					 | 
				
			||||||
@ -1,19 +0,0 @@
 | 
				
			|||||||
/* whoami - print the current user name 	Author: Terrence W. Holm */
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
#include <sys/types.h>
 | 
					 | 
				
			||||||
#include <pwd.h>
 | 
					 | 
				
			||||||
#include <stdlib.h>
 | 
					 | 
				
			||||||
#include <unistd.h>
 | 
					 | 
				
			||||||
#include <stdio.h>
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
_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);
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user