Fixes PR #3858: /dev/fd uniformly updated in MAKEDEV to make directory

(and file nodes) owned by root.wheel, and /dev/fd directory mode 755.  Now
it matches mtree (and the rest of the system's permissions/owner layout).
This commit is contained in:
tv 1997-11-26 03:09:23 +00:00
parent 6c7f015fc8
commit 60ac257eb3
14 changed files with 43 additions and 41 deletions

View File

@ -1,5 +1,5 @@
#!/bin/sh -
# $NetBSD: MAKEDEV,v 1.27 1997/11/20 05:57:38 fair Exp $
# $NetBSD: MAKEDEV,v 1.28 1997/11/26 03:09:23 tv Exp $
#
# Copyright (c) 1990 The Regents of the University of California.
# All rights reserved.
@ -124,8 +124,8 @@ fd)
mknod fd/$n c 10 $n
n=$(($n + 1))
done
chown -R bin.bin fd
chmod 555 fd
chown -R root.wheel fd
chmod 755 fd
chmod 666 fd/*
;;

View File

@ -1,6 +1,6 @@
#!/bin/sh -
#
# $NetBSD: MAKEDEV,v 1.40 1997/11/20 05:57:40 fair Exp $
# $NetBSD: MAKEDEV,v 1.41 1997/11/26 03:09:29 tv Exp $
#
# Copyright (c) 1990 The Regents of the University of California.
# All rights reserved.
@ -146,8 +146,8 @@ fd)
mknod fd/$n c 21 $n
n=$(($n + 1))
done
chown -R bin.bin fd
chmod 555 fd
chown -R root.wheel fd
chmod 755 fd
chmod 666 fd/*
;;

View File

@ -1,6 +1,6 @@
#!/bin/sh -
#
# $NetBSD: MAKEDEV,v 1.19 1997/11/20 05:57:41 fair Exp $
# $NetBSD: MAKEDEV,v 1.20 1997/11/26 03:09:32 tv Exp $
#
# Copyright (c) 1990 The Regents of the University of California.
# All rights reserved.
@ -142,8 +142,8 @@ fd)
mknod fd/$n c 34 $n
n=$(($n + 1))
done
chown -R bin.bin fd
chmod 555 fd
chown -R root.wheel fd
chmod 755 fd
chmod 666 fd/*
;;

View File

@ -1,6 +1,6 @@
#!/bin/sh -
#
# $NetBSD: MAKEDEV,v 1.24 1997/11/20 05:57:42 fair Exp $
# $NetBSD: MAKEDEV,v 1.25 1997/11/26 03:09:35 tv Exp $
#
# Copyright (c) 1990 The Regents of the University of California.
# All rights reserved.
@ -136,8 +136,8 @@ fd)
mknod fd/$n c 18 $n
n=$(($n+1))
done
chown -R bin.bin fd
chmod 555 fd
chown -R root.wheel fd
chmod 755 fd
chmod 666 fd/*
;;

View File

@ -1,6 +1,6 @@
#!/bin/sh -
#
# $NetBSD: MAKEDEV,v 1.23 1997/11/20 05:57:44 fair Exp $
# $NetBSD: MAKEDEV,v 1.24 1997/11/26 03:09:37 tv Exp $
#
# Copyright (c) 1990 The Regents of the University of California.
# All rights reserved.
@ -104,8 +104,8 @@ fd)
mknod fd/$n c 21 $n
n=$(($n + 1))
done
chown -R bin.bin fd
chmod 555 fd
chown -R root.wheel fd
chmod 755 fd
chmod 666 fd/*
;;

View File

@ -1,6 +1,6 @@
#!/bin/sh -
#
# $NetBSD: MAKEDEV,v 1.59 1997/11/20 05:57:45 fair Exp $
# $NetBSD: MAKEDEV,v 1.60 1997/11/26 03:09:40 tv Exp $
#
# Copyright (c) 1990 The Regents of the University of California.
# All rights reserved.
@ -144,8 +144,8 @@ fd)
mknod fd/$n c 22 $n
n=$(($n + 1))
done
chown -R bin.bin fd
chmod 555 fd
chown -R root.wheel fd
chmod 755 fd
chmod 666 fd/*
;;

View File

@ -20,7 +20,7 @@
# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
#
# from: @(#)MAKEDEV 5.2 (Berkeley) 6/22/90
# $NetBSD: MAKEDEV,v 1.31 1997/11/20 05:57:47 fair Exp $
# $NetBSD: MAKEDEV,v 1.32 1997/11/26 03:09:43 tv Exp $
#
# Device "make" file. Valid arguments:
# all a smattering--at least one of each except
@ -133,8 +133,8 @@ fd)
mknod fd/$n c 21 $n
n=$(($n + 1))
done
chown -R bin.bin fd
chmod 555 fd
chown -R root.wheel fd
chmod 755 fd
chmod 666 fd/*
;;

View File

@ -1,6 +1,6 @@
#!/bin/sh -
#
# $NetBSD: MAKEDEV,v 1.13 1997/11/20 05:57:48 fair Exp $
# $NetBSD: MAKEDEV,v 1.14 1997/11/26 03:09:46 tv Exp $
#
# Copyright (c) 1990 The Regents of the University of California.
# All rights reserved.
@ -102,8 +102,8 @@ fd)
mknod fd/$n c 21 $n
n=$(($n + 1))
done
chown -R bin.bin fd
chmod 555 fd
chown -R root.wheel fd
chmod 755 fd
chmod 666 fd/*
;;

View File

@ -1,6 +1,6 @@
#!/bin/sh -
#
# $NetBSD: MAKEDEV,v 1.19 1997/11/20 05:57:49 fair Exp $
# $NetBSD: MAKEDEV,v 1.20 1997/11/26 03:09:49 tv Exp $
#
# Copyright (c) 1990 The Regents of the University of California.
# All rights reserved.
@ -108,8 +108,8 @@ fd)
mknod fd/$n c 11 $n
n=$(($n + 1))
done
chown -R bin.bin fd
chmod 555 fd
chown -R root.wheel fd
chmod 755 fd
chmod 666 fd/*
;;

View File

@ -1,6 +1,6 @@
#!/bin/sh -
#
# $NetBSD: MAKEDEV,v 1.15 1997/11/20 05:57:50 fair Exp $
# $NetBSD: MAKEDEV,v 1.16 1997/11/26 03:09:53 tv Exp $
#
# from: @(#)MAKEDEV 8.1 (Berkeley) 6/9/93
#
@ -87,8 +87,8 @@ fd)
mknod fd/$n c 7 $n
n=$(($n + 1))
done
chown -R bin.bin fd
chmod 555 fd
chown -R root.wheel fd
chmod 755 fd
chmod 666 fd/*
;;

View File

@ -1,6 +1,6 @@
#!/bin/sh -
#
# $NetBSD: MAKEDEV,v 1.32 1997/11/20 05:57:51 fair Exp $
# $NetBSD: MAKEDEV,v 1.33 1997/11/26 03:09:58 tv Exp $
#
# Copyright (c) 1990 The Regents of the University of California.
# All rights reserved.
@ -119,8 +119,8 @@ fd)
mknod fd/$n c 24 $n
n=$(($n + 1))
done
chown -R bin.bin fd
chmod 555 fd
chown -R root.wheel fd
chmod 755 fd
chmod 666 fd/*
;;

View File

@ -1,6 +1,6 @@
#!/bin/sh -
#
# $NetBSD: MAKEDEV,v 1.19 1997/11/20 05:57:52 fair Exp $
# $NetBSD: MAKEDEV,v 1.20 1997/11/26 03:10:01 tv Exp $
#
# Copyright (c) 1990 The Regents of the University of California.
# All rights reserved.
@ -127,7 +127,9 @@ fd)
mk fd/$n c 23 $n
n=$(($n + 1))
done
chown -R bin.bin fd
chown -R root.wheel fd
chmod 755 fd
chmod 666 fd/*
;;
bpf*)

View File

@ -1,5 +1,5 @@
#!/bin/sh -
# $NetBSD: MAKEDEV,v 1.13 1997/11/20 05:57:53 fair Exp $
# $NetBSD: MAKEDEV,v 1.14 1997/11/26 03:10:04 tv Exp $
#
# @(#)MAKEDEV 8.1 (Berkeley) 6/9/93
#
@ -109,8 +109,8 @@ fd)
mknod fd/$n c 53 $n
n=$(($n + 1))
done
chown -R bin.bin fd
chmod 555 fd
chown -R root.wheel fd
chmod 755 fd
chmod 666 fd/*
;;

View File

@ -1,6 +1,6 @@
#!/bin/sh -
#
# $NetBSD: MAKEDEV,v 1.15 1997/11/20 05:57:54 fair Exp $
# $NetBSD: MAKEDEV,v 1.16 1997/11/26 03:10:07 tv Exp $
#
# Copyright (c) 1990 The Regents of the University of California.
# All rights reserved.
@ -134,8 +134,8 @@ fd)
mknod fd/$n c 21 $n
n=$(($n + 1))
done
chown -R bin.bin fd
chmod 555 fd
chown -R root.wheel fd
chmod 755 fd
chmod 666 fd/*
;;