Skip to content

Commit

Permalink
Use /root as a home for superuser.
Browse files Browse the repository at this point in the history
Fix build warnings.
Delete extra copy of uuencode/uudecode.
  • Loading branch information
sergev committed Sep 13, 2015
1 parent 3b1e8d4 commit 2b09c13
Show file tree
Hide file tree
Showing 25 changed files with 195 additions and 1,007 deletions.
5 changes: 1 addition & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ FSUTIL = tools/fsutil/fsutil
TOPSRC = $(shell pwd)
CONFIG = $(TOPSRC)/tools/configsys/config

all: .profile
all:
$(MAKE) -C tools
$(MAKE) -C lib
$(MAKE) -C src install
Expand Down Expand Up @@ -89,6 +89,3 @@ installflash:
# TODO: make it relative to Target
installboot:
sudo pic32prog sys/pic32/fubarino/bootloader.hex

.profile: etc/root/dot.profile
cp etc/root/dot.profile .profile
42 changes: 5 additions & 37 deletions etc/MAKEDEV
Original file line number Diff line number Diff line change
Expand Up @@ -4,46 +4,14 @@
# All rights reserved. The Berkeley software License Agreement
# specifies the terms and conditions for redistribution.
#
# @(#)MAKEDEV 4.27.6 (2.11BSD) 1999/2/19
#
# Device "make" file. Valid arguments:
# std standard devices
# local configuration specific devices
# fd file descriptor driver
# Tapes:
# ht* unibus tu77 & te16
# tm* unibus tm11 & te10 emulations (e.g. Emulex tc-11)
# ts* unibus ts11
# tu* tmscp (tk50/tu81)
# std standard devices
# local configuration specific devices
# fd file descriptor driver
# Disks:
# br* unibus Eaton br1538 or br1711
# hk* unibus rk06 and rk07
# ra* unibus uda50 w/ ra??
# rk* unibus rk05
# rl* unibus rl01/rl02
# rx* unibus rx02
# si* unibus cdc 9766 w/ si 9500
# xp* unibus rm02/03/05, rp04/05/06, diva, eagle, cdc9766, fuji 160.
# Terminal multiplexors:
# dl* dl-11 units other than the console
# dz* unibus dz11 and dz32
# dh* unibus dh11 and emulations (e.g. Able dmax, Emulex cs-11)
# dmf* unibus dmf32
# dhu* unibus dhu11
# dmz* unibus dmz32
# dhv* qbus dhv11
# sd* flash cards SecureDigital
# Pseudo terminals:
# pty* set of 16 master and slave pseudo terminals
# Printers:
# lp* unibus lp11 parallel interface
# va* unibus varian parallel interface
# vp* unibus versatec parallel interface
# Call units:
# Special purpose devices:
# dr* unibus dr11
# ram* memory disk
# dn* dn11 dialer
# ingreslock Ingres lock driver.
# pty* set of 16 master and slave pseudo terminals

PATH=/etc:/sbin:/usr/sbin:/bin:/usr/bin
umask 77
Expand Down
5 changes: 0 additions & 5 deletions etc/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -11,16 +11,13 @@ DESTDIR = /foobar
OWN = root
GRP = wheel

SUBDIR = root
FILES = crontab fstab gettytab group motd passwd \
rc rc.local shells syslog.conf ttys

all install depend lint tags:

clean:
rm -f *~
-for i in ${SUBDIR}; do \
(cd $$i; make DESTDIR=${DESTDIR} $@); done

distribution:
-@mkdir -p ${DESTDIR}/dev
Expand Down Expand Up @@ -75,5 +72,3 @@ distribution:
${DESTDIR}/usr/adm/savacct
install -c -o uucp -g daemon -m 600 /dev/null \
${DESTDIR}/usr/adm/aculog
-for i in ${SUBDIR}; do \
(cd $$i; make DESTDIR=${DESTDIR} distribution); done
11 changes: 5 additions & 6 deletions etc/passwd
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
root:5:0:1:The Man:/:/bin/sh
daemon:*:1:1:The devil himself:/:/bin/sh
root:5:0:1:The Man:/root:/bin/sh
daemon:*:1:1:The devil himself:/root:/bin/sh
sys:*:4:2:Operating System:/tmp:nologin
operator:*:2:5:System &:/usr/guest/operator:/bin/csh
bin:*:3:20:Binaries Commands and Source:/:/bin/csh
operator:*:2:5:System &:/u/operator:/bin/sh
bin:*:3:20:Binaries Commands and Source:/root:/bin/sh
nobody:*:32767:31:Nobody:/nonexistent:/bin/sh
uucp:*:66:1:UNIX-to-UNIX Copy:/usr/spool/uucppublic:/usr/sbin/uucico
ingres:*:39:74:INGRES Owner:/usr/ingres:/bin/csh
uucp:*:66:1:UNIX-to-UNIX Copy:/spool/uucppublic:/sbin/uucico
18 changes: 0 additions & 18 deletions etc/root/Makefile

This file was deleted.

14 changes: 0 additions & 14 deletions etc/root/dot.cshrc

This file was deleted.

14 changes: 0 additions & 14 deletions etc/root/dot.login

This file was deleted.

8 changes: 0 additions & 8 deletions etc/root/dot.profile

This file was deleted.

11 changes: 5 additions & 6 deletions etc/shadow
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
root:ro46DZg1ViGBs:0:1:The Man:/:/bin/sh
daemon:*:1:1:The devil himself:/:/bin/sh
root:ro46DZg1ViGBs:0:1:The Man:/root:/bin/sh
daemon:*:1:1:The devil himself:/root:/bin/sh
sys:*:4:2:Operating System:/tmp:nologin
operator:*:2:5:System &:/usr/guest/operator:/bin/csh
bin:*:3:20:Binaries Commands and Source:/:/bin/csh
operator:*:2:5:System &:/u/operator:/bin/sh
bin:*:3:20:Binaries Commands and Source:/root:/bin/sh
nobody:*:32767:31:Nobody:/nonexistent:/bin/sh
uucp:*:66:1:UNIX-to-UNIX Copy:/usr/spool/uucppublic:/usr/sbin/uucico
ingres:*:39:74:INGRES Owner:/usr/ingres:/bin/csh
uucp:*:66:1:UNIX-to-UNIX Copy:/spool/uucppublic:/sbin/uucico
File renamed without changes.
5 changes: 3 additions & 2 deletions rootfs.manifest
Original file line number Diff line number Diff line change
Expand Up @@ -375,9 +375,10 @@ major 17
minor 4

#
# Files: /
# Files: /root
#
file /.profile
dir /root
file /root/.profile

#
# Files: /etc
Expand Down
2 changes: 1 addition & 1 deletion src/cmd/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ SUBDIR = adb adc-demo aout ar as awk basic calendar cc chflags \
ranlib re renice retroforth scm sed setty sh sl smallc \
smlrc smux stty sysctl test uname wiznet xargs \
zmodem gtest msec unixbench cron compress date2 tip \
talloc uucp uudecode uuencode
talloc uucp

# /sbin
SUBDIR += chown chroot disktool fsck getty init \
Expand Down
12 changes: 1 addition & 11 deletions src/cmd/fold/fold.c
Original file line number Diff line number Diff line change
Expand Up @@ -33,18 +33,8 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*/

#ifndef lint
static char copyright[] =
"@(#) Copyright (c) 1990, 1993\n\
The Regents of the University of California. All rights reserved.\n";
#endif /* not lint */

#ifndef lint
static char sccsid[] = "@(#)fold.c 8.1 (Berkeley) 6/6/93";
#endif /* not lint */

#include <stdio.h>
#include <stdlib.h>
#include <string.h>

#define DEFLINEWIDTH 80
Expand Down
Loading

0 comments on commit 2b09c13

Please sign in to comment.