Commit Graph

430 Commits

Author SHA1 Message Date
julian
69a1ad2394 Obtained from: copied fro mount_kernfs
This is copied from the mount_kernfs code..
if it doesn't work there is a working binary in ~julian
1995-04-21 01:17:50 +00:00
gpalmer
58cb77c258 Bugfixes :
- in mount_portal.c: included catching of SIGHUP to get portald to
  re-read the config file.

  - in mount_portal.c: in SIGCHLD handler the return values checked from
  waitpid were wrong. Note. this routine was written correclty according
  to the manual page for 4.4BSD, but waitpid does not exhibit this
  behaviour. It is not returning 0 when WNOHANG is specified. I havent
  checked this properly.

  - in mount_portal.c: initialized the fdset for the select properly.

  - in mount_portal.c: corrected poor casting in the select.

  - in mount_portal.c: changed a break; to exit (0); so that the
  children die after doing the hard work, this stops the select: bad
  file descriptor messages.

  - in pt_file.c: the kernel passes kernel style open flags to the
  portal code which aren't compatible with "normal" O_ flags. I have
  adjusted these in pt_file.c. In general I think the portal fs code
  and portal_cred structure need changing to pass to the portald
  the right style of flags _and_ the permissions.

  - in pt_tcp.c: a few mistakes in typing of the socket structures,
  getservbyname returns the port number as an int but sockaddr wants
  the port number as an u_short.

  - in pt_tcp.c: someone wrote this on a VAX/Sun whatever and forget
  about byte ordering!! I've included a few htons about the place.

  - in all the above I have sprinkled a few more debugging printf's.

Submitted by:	"Duncan McL Barclay" <dmlb@ohm.york.ac.uk
1995-04-19 12:24:08 +00:00
phk
aad2bfd2d7 Yank out the rewriting of disklabels. This code can and will get confused
in a couple of cases, and it doesn't do much anyway.  It used to save only
the newfs params (block/frag/cgroup.. and nothing more.  Something that
don't belong in a disklabel in the first place.
1995-04-19 02:19:20 +00:00
dufault
bfb23073b7 Remove "BUG" of not supporting arguments for "-o" 1995-04-17 14:51:54 +00:00
dufault
10dc4718ab Add support for arguments in output "-o" string. 1995-04-17 14:35:07 +00:00
gpalmer
bfe8788f82 Bump to 2.0-950418-SNAP 1995-04-17 10:19:31 +00:00
gpalmer
7a52b8dc6b Claim 0xA7 for NEXTSTEP in here also. 1995-04-17 09:46:03 +00:00
gpalmer
bbb6923234 Add NEXTSTEP as claiming partition code 0xA7. 1995-04-17 09:42:54 +00:00
jkh
0e5fd53a02 Bump the snap date. 1995-04-15 16:40:34 +00:00
jkh
0e28a49760 We're now shooting for a 950412-SNAP
Reviewed by:
Submitted by:
Obtained from:
1995-04-12 22:26:47 +00:00
jkh
2ba0109124 Bump this to 0408. I have my reasons. 1995-04-11 07:43:33 +00:00
wollman
ad9efe50d7 Fix initialization error that caused `mount -vat' to behave unexpectedly
in certain circumstances.  Fixes PR #182.

Submitted by:	Andrew Atrens <atreand@statcan.ca>
1995-04-10 18:57:08 +00:00
bde
10bdd90268 Update declaration to match the change made to dir.c a few hours ago. 1995-04-02 22:53:36 +00:00
bde
704d14a252 Submitted by: Philippe Charnier <charnier@lirmm.fr>, added to by bde
Fix all the warnings from `gcc -Wall'.
1995-04-02 16:52:14 +00:00
bde
89a134efd1 Make this actually work. It always failed in FreeBSD because it attempted
to open the mounted block device containing the directory to put the bad
sector files in, and opening of mounted block devices hasn't been allowed
since Net/2 or before.  Attempt to open the raw device instead.  Be more
careful about long names.

Use lstat() instead of stat() to search for block devices so that my
symlink to the default floppy doesn't cause problems.

Check for truncation of the block number when it is squeezed through the
mknod() interface.  The maximum used to be only 32767, but now it large
enough.
1995-04-02 16:36:39 +00:00
bde
0bb5bf2056 Submitted by: Philippe Charnier <charnier@lirmm.fr>, distilled by bde
Fix a couple more bogus types that aren't reported by `gcc -Wall'.
1995-04-02 15:25:19 +00:00
bde
0994f7a4d9 Submitted by: phk, added to by bde
Fix all the warnings from `gcc -Wall'.
1995-04-02 14:52:29 +00:00
ugen
0783af7fac make pass work also as the first keyword
(while addf skipped)
Reviewed by:
Submitted by:
Obtained from:
1995-03-30 12:18:10 +00:00
wpaul
f7f0704be7 Fixed stupid bug in mountd: it would seem that the kernel doesn't allow
you to push the same host into its NFS export lists twice, but mountd
tries to do it anyway. This means that putting:

/some_file_system -ro host1 host1

in your /etc/exports file causes an error. This is bogus: mountd should be
smart enough to ignore the second instance of host1. This can be a problem
in some configurations that use netgroups. For example, each host in my
netgroups database is has two entries:

startide (startide,-,) (startide.ctr.columbia.edu,-,)

When mountd sees this, it tries to put startide.ctr.columbia.edu into the
export list *twice*. Just listing 'startide' /etc/exports list will also
screw up because mountd will try to resolve the netgroup 'startide' instead
of the hostname 'startide.'

My solution is watch for duplicate entries in get_host() and mark them
as grouptype GT_IGNORE, which do_mount() will now cheefully throw away.
This is a bit of a kludge, but it was the least obtrusive fix I could
come up with.

Also silenced a compiler warning: arguments passwd to xdr_long() should
be u_long, not int. :)
1995-03-26 23:36:38 +00:00
ache
5c7b628b09 Use more AI to predict initial/final isdst,
latest isdst  preffered.
1995-03-26 22:51:51 +00:00
phk
516c390a8d add a \t which has been nagging me too long 1995-03-19 06:28:48 +00:00
phk
37250f58bf Remove reference to fsdb(8). We don't have it. 1995-03-17 04:41:18 +00:00
wollman
5eaf9c8202 Fix long-standing core dump when ld returns failure. 1995-03-16 17:11:21 +00:00
dg
6777cd9deb Changed manual page to conform to the reality in FreeBSD. 1995-03-15 07:08:33 +00:00
phk
a607dde1c8 Extract the cpio-floppy relative to the root, not /stand. 1995-03-15 06:16:10 +00:00
joerg
20d4e1f613 Do not try to make any notice if the PID file cannot be created.
Makes folks happy that run slattach in single-user, where /var/run is
probably missing.
1995-03-12 23:37:28 +00:00
wpaul
34055789d9 Impliment -ad and -au flags in addition to -a and document the change
in the man page. ifconfig -au affects all interfaces marked as up,
and ifconfig -ad affects only the interfaces marked down. ifconfig -a
still handles everything. This change is purely for compatibility with
SunOS, for those who might be accustomed to the SunOS ifconfig's
behavior.
1995-03-12 19:05:03 +00:00
joerg
e0d30786b7 Make slattach create a PID file under /var/run when the connection is
established.  This way, automatic scripts are possible that might
control the SLIP connection.  It's unacceptable for a daemon that's
being controlled by a variety of signals to not leave its PID
somewhere.  The file name contains the terminal path name component of
the associated tty device, so it should be unique even with multiple
parallel slattach's running.  The file will be unlinked at regular exit.

Also found a minor bug in the option handling by compiling with -Wall.
1995-03-12 15:04:18 +00:00
ugen
7e3c838179 Fix it - now this programm should work probably..It is
still commented out in rc and i ask everybody to test it and
reply  if it makes any troubles...If no - very good..
1995-03-12 13:27:24 +00:00
ugen
a423b12e92 Update manpage..BTW,if somebody wit good English
would go through it and fix it would be a really good idea.
1995-03-03 12:59:47 +00:00
ugen
cd46311ea8 Oops..remove some debugging leftover.. 1995-03-03 12:47:23 +00:00
ugen
f9fd9160fe Ok..so everybody picking on me that ipfw syntacs
is a pain in ...wel.. trying to fix this
 * from/to/via position indepenndant syntax
 * "any" for 0/0 host address
 * addf/addb default keyword in case you skip it..
 * pass = accept new action, seems to be somewhat better
   in particular cases
 * on = via (as on ed0 instead of via ed0,loook at
   reject tcp on ed0 from hacker )
1995-03-03 12:28:34 +00:00
ugen
b115df49dc Fixed manpage..ldeny,lreject and log options are there
and others not..
Submitted by:	torstenb@FreeBSD.ORG
1995-02-27 10:52:22 +00:00
phk
5d9bd5b56a The things you have to go through some times! Add a minimal program to
read a termcap entry, since tset is picky about filedescriptors...
1995-02-26 20:39:40 +00:00
phk
892a7ad162 oops. 1995-02-26 02:00:35 +00:00
phk
db0922b876 Add a '-p' option to md5. This will save some time in generation of the
ctm deltas.
1995-02-26 01:55:31 +00:00
ache
c334f2853b configure_network() if carrier already present
Submitted by: serg@opus.opu.odessa.ua
1995-02-25 18:06:23 +00:00
ugen
f3de1631fc Change utility to accept interface name
along with IP as "via" argument
1995-02-24 14:32:45 +00:00
phk
580692df64 Fix -Wall warnings.
Yes I have better things to do, but just now I'm waiting...
1995-02-23 07:05:01 +00:00
bde
65444b86b5 Don't clobber d_secperunit in disklabel -e'. disklabel -e' replaces all
the values that it doesn't print by defaults.  This seems wrong.  I want
to be able to see the total number of sectors more than edit it.  The
default d_secperunit of (sectors/track * tracks/cylinder * cylinders) is
bogus if sectors/track is only an approximation and more bogus if
sectors/track and tracks/cylinder are dummy values such as 4096 and 1
to defeat ufs's pessimizations.
1995-02-22 23:21:29 +00:00
ats
babe77cee4 Document the mountdtab file in the man page. 1995-02-22 21:42:48 +00:00
wollman
4d90fd7141 Use POSIX.2 regular expressions, get rid of libcompat. 1995-02-21 04:05:20 +00:00
guido
c8660b50b6 Implement maxprocperuid and maxfilesperproc. They are tunable
via sysctl(8). The initial value of maxprocperuid is maxproc-1,
that of maxfilesperproc is maxfiles (untill maxfile will disappear)

Now it is at least possible to prohibit one user opening maxfiles

-Guido

Submitted by:
Obtained from:
1995-02-20 19:42:42 +00:00
phk
fa66c973d8 Clean this file up so it is readable... 1995-02-20 00:48:50 +00:00
jkh
541a543c39 ipfirewall.4 is obviously not here anymore! Adjust the Makefile. 1995-02-18 16:36:23 +00:00
ugen
8b940520b7 Finally document "via" feature.. 1995-02-17 15:44:08 +00:00
jkh
38ea135171 fstab is in section 5, not section 8.
Obtained from: NetBSD
1995-02-17 03:37:33 +00:00
bde
d6ee5e56b1 Fix another bogon in the change before the last. 1995-02-16 11:23:25 +00:00
wollman
ffc5acb7aa Allow the user access to net.inet.igmp, even though there's nothing
sysctl(8) can interpret there.  (Someday there might be.)
1995-02-16 00:28:42 +00:00
ache
23fc8dcfb6 Changes for new _menu interface 1995-02-15 19:48:10 +00:00