Commit Graph

7388 Commits

Author SHA1 Message Date
dyoung 9d2dd62a57 Stop duplicating the ISO9660 sources in sys/fs/cd9660/ for makefs(8). 2006-02-01 22:19:34 +00:00
christos 5883cf1e6d PR/32681: Yves-Emmanuel JUTARD: Fix and document -d [hostname [pub]] 2006-01-31 17:47:04 +00:00
dsl 16ca1f6da7 Fix the detection of the bootstrap magic number when run on big-endian systems.
Correct another typo.
2006-01-30 21:15:37 +00:00
christos f49dbe00ee - use sizeof() instead of the buffer size.
- check write return.
- use MAXPATHLEN instead of BUFSIZ for a path buffer.
2006-01-29 18:55:46 +00:00
christos 85d0017934 Initialize loop master to -1 so that we don't accidentally close fd 0; should
fix smb's problem.
2006-01-29 17:52:38 +00:00
jmmv 1cd43a0b52 Add a missing space in the usage message. 2006-01-26 17:24:52 +00:00
martin 91378840b8 Add reference to installboot(8), as suggested by Patrick Welche. 2006-01-26 15:05:27 +00:00
joerg 32ce5ba905 Add conditional code to ignore the non-numeric part of an OS version
for the sake of compatibility tests in pkg_add.
E.g. DragonFly versions like
	1.4.0-RELEASE
are reduced to
	1.4.0

This code is disabled by default on NetBSD.
2006-01-25 00:17:34 +00:00
dsl 6c51ef9cb5 Fix spelling mistake in message 2006-01-24 18:35:18 +00:00
wiz ec5cd4a9b7 New sentence, new line. Bump date for previous. Properly case PostScript. 2006-01-22 21:31:17 +00:00
wiz 2d00c446d6 Bump date for previous. 2006-01-21 23:34:45 +00:00
rpaulo 78678b130a Better support of IPv6 scoped addresses.
- most of the kernel code will not care about the actual encoding of
  scope zone IDs and won't touch "s6_addr16[1]" directly.
- similarly, most of the kernel code will not care about link-local
  scoped addresses as a special case.
- scope boundary check will be stricter.  For example, the current
  *BSD code allows a packet with src=::1 and dst=(some global IPv6
  address) to be sent outside of the node, if the application do:
    s = socket(AF_INET6);
    bind(s, "::1");
    sendto(s, some_global_IPv6_addr);
  This is clearly wrong, since ::1 is only meaningful within a single
  node, but the current implementation of the *BSD kernel cannot
  reject this attempt.
- and, while there, don't try to remove the ff02::/32 interface route
  entry in in6_ifdetach() as it's already gone.

This also includes some level of support for the standard source
address selection algorithm defined in RFC3484, which will be
completed on in the future.

From the KAME project via JINMEI Tatuya.
Approved by core@.
2006-01-21 00:15:35 +00:00
wiz 771b656bd0 Add missing .El. From Nicolas Joly in PR 32546. 2006-01-20 21:50:54 +00:00
wiz 5fb854a4b2 Add reference to RFC 3164. From Pavel Cahyna in PR 32578. 2006-01-20 21:48:41 +00:00
christos c681304808 Instead of dealing with port@host in many places, do it where it is needed.
It reduces code and complexity and at the same time allows as to use symbolic
ports instead of just numeric everywhere.
2006-01-20 17:30:00 +00:00
garbled 79363b714f Add control file documentation for 'o' handling, and fix the
documentation on the DVI handling, the correct letter is 'd' not 'r'.
2006-01-20 08:51:40 +00:00
garbled bd7bcee846 Add a simple filter that encapsulates ascii text into HP PJL format.
Script written by Ross Harvey.
2006-01-20 08:37:26 +00:00
elad 3281cee076 Default socket owner to operator:operator. 2006-01-20 00:21:35 +00:00
garbled fad94e160d Fix PR bin/30272 Lpd would create the tempfile "remotexxxxx" and send
that, but then fill out the control file with the "df" filename.  Fix by
sending the remote file with the "df" filename, as suggested by Robert
Vargason on tech-userlevel.  lpd -r now works properly with an if (input
filter)
2006-01-19 19:17:59 +00:00
garbled 2d58d3d4c7 If we set SIGCHLD to SIG_IGN then any wait()'s on the child processes will
return -1.  This causes filters to fail because we get a value for
child_pid we weren't expecting.  Set SIGCHLD to SIG_DFL instead to clear
the reapchild setting when forking the child lpd.
2006-01-18 23:17:38 +00:00
garbled 9ca158e136 change return(0) to return(rv). We went to all the trouble to calculate the
return value, we might as well return it. (fixes lpq -a, and probably lpd)
2006-01-18 19:11:25 +00:00
garbled d1a9ef55c4 per PR bin/12958 change buf[MAXPATHLEN] to buf[BUFSIZ] to avoid potential
future problems if either should change.
2006-01-17 19:41:49 +00:00
garbled 517b1ba160 Update a comment regarding control file WRT "o" 2006-01-17 19:12:17 +00:00
garbled fae257a066 Fix PR bin/14247
This PR claims that MacOSX 10.1 cannot print postscript files to a NetBSD
lpd because the mac will tag the file with an "o" for postscript, which
we do not handle.  Rather than simply mapping o -> f as was done in the
PR, or mapping o -> l as was done in FreeBSD, I have implemented full
support for the "o" option.  If a postscript filter does not exist in the
printcap file however, it will default to "l" handling.

With this change, you can now specify a "pf" or postscript filter in your
printcap, and have it handle postscript files sent to it with "lpr -o".

The "o" format in lpd is specified in RFC1179 as being a valid format flag.
2006-01-17 19:11:12 +00:00
garbled e76be65112 in ckqueue() if "sd" is not an existing capability, than sd will be
uninitialized, causing the free() in out: to explode.  Initialize sd to NULL.
2006-01-17 18:38:12 +00:00
is def92bcab5 Fix obvious error, hopefully correctly. 2006-01-15 13:17:15 +00:00
agc 9823410edb Use a CPP definition for "/sbin/nologin" - it's at the top of the
file.

Modify the logic in the previous but one commit - /sbin/nologin should
be considered a valid user shell, since otherwise, with the addition
of the checks for a valid user shell, useradd with a shell of
/sbin/nologin will fail.

Modify some of the code here to conform to the standards in the rest
of this file.
2006-01-14 22:00:52 +00:00
christos f4a430efd2 Use the ppp zlib from net. In preparation for importing zlib-1.2.3.
Unfortunately due to the changes in 1.2.3 that have more fine-grain
states between calls to inflate, we cannot easily adapt it to
packetized mode.
2006-01-14 19:55:11 +00:00
wiz 1a0cee1a1d Replace NetBSD with Nx. 2006-01-13 17:45:36 +00:00
elad 87a445663d Add forgotten ')'. 2006-01-13 16:36:33 +00:00
tsutsui 4930ad54bc Note about ews4800mips. 2006-01-13 15:37:26 +00:00
christos efe8347be7 treat /sbin/nologin specially. 2006-01-13 13:43:23 +00:00
elad 226d27021a add mode 0600 for open call with O_CREAT. 2006-01-13 10:06:10 +00:00
wiz dd0ea511f5 New sentence, new line. 2006-01-12 21:15:59 +00:00
garbled 606b04818e sizeof(char) is unneccesary. 2006-01-12 18:06:25 +00:00
garbled 53df3fea02 Add libedit command line history capability to lpc(8). 2006-01-12 17:53:03 +00:00
jmmv 43e6e3abd2 Capitalize a letter to match other sentences in the list. 2006-01-12 16:45:25 +00:00
christos b018a2c29a revert previous. persist does not need to reset the line discipline. (verified
by perry)
2006-01-11 21:16:51 +00:00
christos c68bc6a017 reset the tty in the normal tty discipline if we persist so that we can
dial again.
2006-01-10 22:57:35 +00:00
reed de56c0d123 Fix mispelling in a comment. 2006-01-10 20:53:24 +00:00
wiz d0fb2fc679 Use MaxPathSize instead of PATH_MAX (like everywhere else here). 2006-01-08 12:20:54 +00:00
yamt 895fec49e1 reset hdrcnt whenever printing a header. 2006-01-08 08:47:16 +00:00
christos ca0029edd3 Add checks for valid shell. From Liam Foy. 2006-01-06 18:11:00 +00:00
yamt db8ef563ea mention /var/db/mountdtab. 2006-01-05 10:41:03 +00:00
yamt 5997340664 do_nfssvc: remove code to go up the path, as it's nonsense and
sometimes even harmful.
2006-01-05 10:38:29 +00:00
christos 5d62e1710e sync with pkgsrc version. 2006-01-04 23:36:14 +00:00
garbled 97f8851cc8 Address PR bin/12112
Lpd has the ability to start on a port other than "printer" but has no
way to connect to a remote lpd on that port.  This change adds the
ability to specify port@host in the rm element of printcap(5).  Tested to
work with both a standard lpd setup and one running on special ports.
2006-01-04 15:32:50 +00:00
yamt f79b461ad5 update MAXNFSDCNT and bump date. 2006-01-01 17:03:54 +00:00
christos 36134a63ad - don't leak the ipv6 file descriptor when we close
- fix packet statistics
- don't check errno if n != -1
- check more error conditions
- relinguish the ppp tty when we are on demand mode, fixes demand mode
- ansi prototypes
2005-12-31 08:36:01 +00:00
tsutsui 3b1ef5e593 Add ews4800mips support. 2005-12-29 15:32:20 +00:00