ache
25297a97a8
Fix bugs:
...
cchars2 not used
can't set or report MIN or TIME == 255
TIOCSETD on wrong fd
PPPDISC is not reported
1995-04-28 19:29:30 +00:00
dg
b824780548
Install with default BINOWN (as it once used to be).
1995-04-15 03:31:19 +00:00
dg
b0ecb5429e
Install setgid kmem rather than setuid root. The problem with procfs that
...
was breaking this before has been fixed.
1995-04-15 03:25:52 +00:00
ache
bf4c9aa148
Allow root to delete uchg/uappnd files
1995-04-13 13:35:09 +00:00
joerg
1fa4f508ae
date(1) didn't emit a final newline if the format had been specified
...
with `+'. This breaks tradition and violates Posix 1003.2.
Discoverd by: luigi@labinfo.iet.unipi.it (Luigi Rizzo)
1995-04-03 20:08:33 +00:00
bde
cb1457c9ad
Add braces to fix wrong if-if-else-if nesting that broke `cp -pR' for
...
fifos.
1995-04-02 00:49:16 +00:00
phk
183b7355f6
Make build work, even if there is no obj subdir.
1995-03-30 19:45:20 +00:00
phk
d42111863a
Having BLOCKSIZE=K and using "-k" option ls would use 2K block size...
1995-03-23 19:05:00 +00:00
joerg
c6030c6511
You will find enclosed some changes to make gcc -Wall more happy in
...
/usr/src/bin. Note that some patches are still needed in that directory.
I (Joerg) finished most of Philippe's cleanup. /bin/sh will still
need *allot* of work, however.
Submitted by: charnier@lirmm.fr (Philippe Charnier)
1995-03-19 13:29:28 +00:00
dg
612646eb4c
Fix previous fix that removes an unnecessary space; the output is now
...
just like it was in 1.1.5.
1995-03-09 20:40:17 +00:00
jkh
1d346f4dd3
Allow 0 as a signal number to match the man page.
...
Noticed by: Mike Murphy <mrm@Sceard.COM>
1995-03-05 21:52:41 +00:00
joerg
a732676a92
Use `interactive' (foreground) delivery by default. The old behaviour
...
of queuing mails only can be restored by uncommenting a CFLAGS+= line
in the makefile, so sites that _really_ need this (perhaps some huge
mail hubs) can still have it. The majority of FreeBSD boxes is better
served with an immediate delivery (and last time i've been asking on
the list, nobody complained).
1995-03-05 08:27:14 +00:00
guido
a28e8018c8
Fix the deletion of trailing newlines with backquote expansion.
...
Reviewed by:
Submitted by:
Obtained from:
1995-03-01 13:04:15 +00:00
jkh
1323b9b07e
1000000 usec -> 1 sec 0 usec; fix.
...
Submitted by: "Philippe Charnier" <charnier@lirmm.fr>
1995-02-16 09:17:27 +00:00
bde
df0c70091b
Include <limits.h> to get the definition of INT_MAX - don't depend on
...
namespace pollution in <time.h>.
1995-02-03 22:21:09 +00:00
dg
dd92b57647
Fix bogus format string; fixes problem reported by Wolfram Schneider.
1995-01-25 07:31:01 +00:00
ache
5887fd95f0
More koshering [ul]case fix, don't use pre-initialized tables at all,
...
treat 0xFF as valid character.
1995-01-17 23:04:29 +00:00
ache
eb022aca1e
Make conv=[lu]case works with localized ctype (8bit)
1995-01-17 22:55:59 +00:00
ats
c24e685c76
Submitted by: David Muir Sharnoff
...
domainame has referenced getdomainname(2) instead of getdomainname(3).
bug report docs/137.
1995-01-14 17:02:33 +00:00
alm
a8457251d8
fixed `s' to set dot to last line affected, not the last line in
...
a substitution range.
1995-01-14 11:47:16 +00:00
paul
5c96f27c9c
What I think is a more correct fix for the handling of backslashes
...
inside backquotes. Reversed my previous fix.
1995-01-11 07:07:00 +00:00
paul
27f1f0b76a
Fix a bug with handling backslash escapes inside some quotes.
...
Should solve our problems with edit-pr.
1995-01-09 20:00:54 +00:00
bde
b4e68b2cf5
Don't strip off the last slash in the pathname "/". cp used to
...
stat the pathname "" in order to decide that the pathname "/" is
a directory. This caused `cp kernel /' to fail if the kernel has
the POSIX behaviour of not allowing the pathname "" to be an alias
for ".". It presumably also caused `cp /etc/motd /' to fail in
the unlikely event that "." is not stat'able.
Be more careful about concatenating pathnames: don't check that
the pathname fits until prefixes have been discarded (the check
was too strict). Print the final pathname in error messages.
Terminate the target directory name properly for error messages.
Don't add a slash between components if there is already a slash.
1994-12-30 13:12:12 +00:00
bde
1bba21e3a1
Document the arch flag. It has always worked in 2.0.
...
Document aliases for the flags.
The formatting of the section describing the flags is poor.
1994-12-27 16:49:08 +00:00
bde
d82158a7e0
Obtained from: partly from 1.1.5
...
Convert "" to "." for "cd" and "cd ''". chdir("") is required to fail
on POSIX systems.
1994-12-26 13:02:05 +00:00
bde
c73adf1de8
Obtained from: partly from 386BSD-0.1.2.4
...
Fix several bugs involving the obsolescent -d and -t options:
-d 0 and -t 0 were ignored
-t -600 was a usage error
-d 'atoi is not suitable for parsing args' and -t duh were not usage errors
Change some error messages to say which call to settimeofday failed.
Restore casts of NULL in function calls.
Finish conversion to using err() instead of perror().
1994-12-26 12:59:28 +00:00
joerg
30a0fe9c66
Make ls recognize the COLUMNS environmental variable, even
...
in cases where it does not run on a terminal. This is important
e.g. for commands like
env COLUMNS=132 ls -CR | lpr -Psome-wide-printer
1994-12-18 19:00:01 +00:00
jkh
09b19ee9f7
src/bin/ed will never build DES encumbered ed again. That is the job
...
for secure/bin/ed ...
1994-12-18 15:15:10 +00:00
bde
4bd4925bd2
Use lstat() instead of stat() for checking if the final source file exists,
...
so that `ln -fs' works when the source is a symlink pointing to a non-
existent file.
1994-12-06 18:50:44 +00:00
dg
bd0c7b7320
Re-apply an old patchkit days fix of mine for mempages:
...
* PATCHES MAGIC LEVEL PATCH THAT GOT US HERE
* -------------------- ----- ----------------------
* CURRENT PATCH LEVEL: 1 00051
* -------------------- ----- ----------------------
*
* 14 Aug 92 David Greenman Fixed NEWVM mempages calculation
1994-11-24 13:13:55 +00:00
wollman
d3aeb5a862
Add DISTRIBUTION=krb for Kerberos case.
1994-11-20 23:18:15 +00:00
ats
61a9f7372b
Fix an error to prevent some core dumps from ps.
...
You can get ps easily to core dump, if you are running a "make depend"
on a kernel in one window and a "ps -auxww" in another. The ww will
try to give you the full argument list of the command that can
now be 64Kb large, but ps expected only 4Kb large arg arrays and
doesn't check for overflows.
1994-11-10 23:25:12 +00:00
pst
b8ab9277ff
Add end of line check so mkinit doesn't produce garbage if you have a
...
MKINIT line that doesn't have a comment on it (we have at least two).
This mkinit program was written by someone who obviously doesn't believe
in defensive programming. :-( There's a LOT of work that needs to be done
on this thing. :-( :-( :-(
1994-11-06 06:27:04 +00:00
jkh
0ba930fc76
Get this braindead, mongoloid shell look in /stand for pwd if it can't
...
find it in /bin. This is something of a kludge, I know, but consider
my limited alternatives: I can't make this an execvp() without making
people scream that I introduced a failure point or slowed down pwd,
and I can't make it an optional macro since crunch doesn't let you pass
arbitrary command-line args to the build of one of its crunch-ees.
This is the simplest, if not the nicest looking, solution I could come up
with.
1994-11-06 01:29:26 +00:00
ache
7418e4c6c2
Fix group permissions check for group list size > 1
...
Pointed by Bruce
1994-11-05 20:48:06 +00:00
ache
b3950642a8
Fix root -w case according to manpage (-x & -r cases already accords)
...
Pointed by Bruce.
1994-11-05 20:24:49 +00:00
ache
330d2baea1
Cosmetique, missing tab/spaces after patch
1994-11-05 17:31:23 +00:00
ache
63bfe9e23a
More complex implementation of previos superuser fix
...
because rw and x bit treats differently infact
1994-11-05 17:28:03 +00:00
ache
bc1cc6ddda
test produce wrong results for superuser, i.e. tells
...
that file is unreadable when it is readable infact.
1994-11-05 17:07:14 +00:00
dg
6e04bf5b79
Nuked #ifdef __386BSD__ since this is not appropriate and no longer defined
...
in our 2.6.1 gcc port.
1994-11-03 21:46:55 +00:00
phk
351aa878aa
Don't check existence of -lcrypt to decide if DES is employed,
...
instead check that "NOCRYPT" isn't defined.
1994-10-29 10:13:34 +00:00
dg
56d17bcede
Use kvm_uread instead of kvm_read to access the upages.
1994-10-18 04:27:46 +00:00
ache
e0df6f34b8
Back out ctype fix, unneded with new ctype
1994-10-09 15:25:23 +00:00
ache
200805db70
Skip 'cua' 3 chars like 'tty' 3 chars
1994-10-02 14:11:32 +00:00
dg
021853ab44
On second thought...back out previous commit.
1994-10-02 08:33:31 +00:00
dg
3c9bd5de76
Include rtprio.h
1994-10-02 08:19:13 +00:00
ache
8a7d72f6e4
libcompat removed
1994-10-02 01:36:03 +00:00
csgr
e9bb220eef
First level of changes for bringing in eBones (kerberos).
...
- Get rid of inverse logic (NOKERBEROS and NOEBONES) in src/makefile,
and replace with MAKE_KERBEROS and MAKE_EBONES. (Far fewer contortions,
and both default to off.) IF YOU WANT KERBEROS, YOU HAVE TO EXPLICITLY
DEFINE ONE OF THESE.
- Make Makefiles kerberos-aware.
1994-09-29 13:06:54 +00:00
wollman
654b618563
Actually implement this correctly.
1994-09-26 02:14:27 +00:00
dg
8722740e7f
Added $Id$
1994-09-24 02:59:15 +00:00
bde
39056852b1
Remove bogus cast that was introduced in the previous commit.
1994-09-21 22:34:38 +00:00
bde
c7b1379cc8
Remove redundant declarations that were added in the previous commit.
1994-09-21 22:31:01 +00:00
ache
ba621babdd
Make ls ctype-aware
1994-09-21 20:23:07 +00:00
phk
61ca3e5cab
fix ln to accept -f again. Thanks Bruce. Seems that Joe Grosch isn't
...
quite as safe as I thought. I will have to look much closer on his
patches. Damn.
1994-09-20 07:24:51 +00:00
phk
0969323e72
Applied patch to make -Wall and -Dlint shut up.
...
Reviewed by: phk
Submitted by: Josef Grosch <joeg@gagme.wwa.com>
1994-09-20 07:18:04 +00:00
phk
936982de13
The former patch to sync.c was short-lived. Bruce pointed out that
...
"Now it is has 2 portability bugs, which is a lot for 5 lines of working code"
1994-09-20 07:02:35 +00:00
phk
2c9f4788e2
/home/phk/jg
1994-09-20 06:28:16 +00:00
phk
1da6fa08f8
Applied patch to make -Wall and -Dlint shut up.
...
Reviewed by: phk
Submitted by: Josef Grosch <joeg@gagme.wwa.com>
1994-09-20 06:24:56 +00:00
pst
7963d9a803
Add support for '-k' option to print file allocation space in 'K' instead of
...
system blocks.
This is semi-original code, not the same way this crufty option was handled
in FreeBSD 1.x.
1994-09-19 07:49:56 +00:00
wollman
3363d7a700
Added domainname.
1994-09-18 21:25:26 +00:00
wollman
08e96f0a30
A new domainname(1) command based on hostname(1), this time with a correct
...
manual page.
1994-09-18 21:23:37 +00:00
sef
600b25e2d3
With '!' being made into a keyword (yech!), case cases didn't work properly.
...
This should fix it (passed my test cases). Originally discovered with
perl's Configure (well, in FreeBSD, I don't know how the NetBSD folks
discovered it).
Reviewed by: sef
Submitted by: jtc@cygnus.com
Obtained from: NetBSD
1994-09-14 17:41:32 +00:00
csgr
a837391e87
Make get_int() think that "" (null) has the integer value 0.
...
(Which is the same behaviour as in 1.x)
The install blows up without this.
Reviewed by: rgrimes
1994-09-11 21:30:09 +00:00
csgr
b819d56caf
- handle signs on integers properly,
...
- make sure error messages for bad integers are moderately sensible
- handle test ! "abc" -o "abc" (This should evaluate to true)
(and similar cases) ie:
and/or operator test added to POSIX special case processing.
- more test cases added.
Based on: Work done on 1.x's test(1) by Andrew Moore and Adam David.
1994-09-11 13:57:31 +00:00
jkh
6cf02f12cc
[ From Dave Tweten ]
...
POSIX.2 looks pretty unequivocal to me, and it agrees with you.
Under the explanation of the "-p" option, it says, "Each dir operand that
names an existing directory shall be ignored without error." Under the
explanation of exit status zero, it says, "All the specified directories were
created successfully, or the-p option was specified and all the specified
directories now exist."
Seems to me POSIX requires exactly the behavior you want.
[ And I've made the change, which is also now compatible with 1.x - jkh ]
Reviewed by: jkh
Submitted by: jkh/tweten
1994-09-08 21:34:33 +00:00
bde
ebb7b36c3a
Explicitly include <sys/types.h> before including <regex.h>. This is
...
apparently required by POSIX. It will be required in practice when
the bogus inclusion of <sys/types.h> is removed from <stdio.h>.
1994-09-05 13:03:50 +00:00
dg
fa6393db5b
Added rtprio option/field.
...
Submitted by: Henrik Vestergaard Draboel
1994-09-01 11:28:45 +00:00
bde
4b07d8e782
Add dependencies on libraries to DPADD. Someday this should be done
...
automagically. -lfoo has to be right to work, but ${LIBFO0} is too
easy to forget or misspell; nothing checks it and it should be
different for shared libraries.
1994-08-28 18:49:06 +00:00
ats
b7079cf51c
Reviewed by:
...
Submitted by:
Added the FTS_NOCHDIR flag to the fts-open call. This is needed, so that
the fts don't change the current directory for rm and subsequent calls
to rmdir with relative pathnames don't fail.
Pulled over the bugfix in 1.1.5.
1994-08-28 18:34:50 +00:00
ats
ce729aba5e
Reviewed by:
...
Submitted by:
Oops, overlooked another typo in this man page.
1994-08-28 17:19:58 +00:00
ats
ec07274b9d
Reviewed by:
...
Submitted by:
Correct two typos in the format string usages.
1994-08-28 16:52:46 +00:00
bde
d2fde8ffe5
Touch init.c after making it in case mkinit refused to touch it after not
...
changing it. mkinit's attempted smartness about timestamps is mismatched
with the makefile. init.o is compiled _twice_ the first time it is made...
1994-08-21 10:44:51 +00:00
dg
44fc281f48
Got rid of stupid warning message.
1994-08-18 14:35:23 +00:00
dg
579d5f0530
Got rid of extra space between args and (command).
1994-08-18 14:30:53 +00:00
dg
1e4a2dfbef
The last commit was bogus...the putenv doesn't affect the parent process,
...
so the BLOCKSIZE doesn't need to be preserved.
Also initialized the flags variables, and used 1k instead of 1024 for
BLOCKSIZE.
1994-08-12 10:23:49 +00:00
dg
679aa90292
Implemented the -k flag more properly...don't destroy the user's setting
...
of the BLOCKSIZE environment variable.
1994-08-12 07:26:52 +00:00
wollman
422cf01ca5
Make `ps' set-uid root so that it can read the same set of arguments
...
that old `ps'es did. I'm not too thrilled about this, but I'm not
enough of an FS person to hack procfs so that /proc/xxx/mem is readable
by members of group `kmem'. If this is done, then `ps' can go back to
being set-gid kmem.
1994-08-11 20:06:55 +00:00
wollman
670a01d488
Gimme back my `-k' option!
...
Also document `-t' option in the usage message.
1994-08-10 19:21:07 +00:00
jkh
796c2dbc4f
WHOOPS! Put that back! Sorry, wrong Makefile.inc!
...
[slinks away embarassed]. It's NOSHARED again ("Gee, sorry about that
honey! I could have *sworn* the safety was on!").
Reviewed by:
Submitted by: jkh
1994-08-08 19:30:03 +00:00
jkh
ab254e561b
Removed NOSHARED. "It's safe now, honey."
...
Reviewed by:
Submitted by: jkh
1994-08-08 19:28:26 +00:00
jkh
f97b56dcb0
The handling of err.h and const.h were in a real tangle and didn't
...
work if you didn't explicitly depend first; this should both simplify
things and make it work in all circumstances.
Reviewed by:
Submitted by:
1994-08-07 21:28:27 +00:00
wollman
775b0042f2
Fix some dependency bobbles.
1994-08-06 01:51:03 +00:00
wollman
fc552b671f
Disable Kerberos for now.
1994-08-06 01:48:36 +00:00
wollman
0e5400218f
Fix makefiles for our macros.
1994-08-05 17:02:31 +00:00
dg
6b466831f4
Converted 'vmunix' to 'kernel'.
1994-08-05 09:14:37 +00:00
phk
9941d391f3
Submitted by: phk
...
Got rid of a couple of binary files by uuencoding. 49 more to go.
BTW: ed(1) seems to have an exit(2) problem, 5 tests fail.
1994-07-23 18:14:06 +00:00
rgrimes
f989c755d0
Need ${LDFLAGS} one more place.
1994-05-30 13:59:50 +00:00
rgrimes
a2fb8fa112
Need to sue ${LDFLAGS} when building local binaries so they get built
...
static if ${NOSHARED}==YES. This makes it easier to bootstrap a system.
1994-05-29 12:43:06 +00:00
rgrimes
8de613e0e8
Do not build /bin shared
1994-05-28 03:55:41 +00:00
rgrimes
71f843c9a2
BSD 4.4 Lite Usr.bin Sources
1994-05-27 12:33:43 +00:00
rgrimes
e3cfc8ce61
BSD 4.4 Lite bin Sources
1994-05-26 06:18:55 +00:00
rgrimes
f185bf7f09
This commit was generated by cvs2svn to compensate for changes in r1556,
...
which included commits to RCS files with non-trunk default branches.
1994-05-26 06:18:55 +00:00
jkh
30d7ba45a9
Fix gross spelling and typographical errors pointed out by Keith Bostic.
1994-04-24 01:22:07 +00:00
jkh
95ce2b10f0
Fix gross spelling and typographical errors pointed out by Keith Bostic.
1994-04-24 01:06:32 +00:00
alm
be89471c9d
use umask 077 for buffer file
1994-03-23 04:36:59 +00:00
rich
b5e37926b7
Take -lgnuregex back out. Linking with it causes 'make install' to fail.
1994-02-03 04:23:11 +00:00
alm
26c84d7dc7
Fixed range address bug: 1,2, == 2,2 not 2,.
...
Overhauled the name space, reworked some modules and removed the
obsolescent Addison-Wesley copyright.
1994-02-01 00:36:28 +00:00
jtc
914df1fcc6
Document the new, less restrictive, behavior of the matching operator.
1993-10-04 22:07:27 +00:00
jtc
c2f64d013c
Allow expressions like "expr 'ABC' : '^.*$' to work as is done in other
...
expr implementations.
1993-10-04 21:58:53 +00:00
jtc
d3452ecc7d
Fix grammar to eliminate support for unary minus expressions -- they
...
weren't supported, they aren't standard, and they caused expr to dump
core.
1993-09-14 22:49:52 +00:00
alm
fa9c18f14c
Renamed some files that were giving SUP trouble.
1993-08-27 22:15:16 +00:00
alm
eb6abffe88
Only a single slash (/) is now necessary to repeat a search as per Theo's
...
request. So the command:
/pattern/;/
finds the second line containing "pattern" after the current line.
Caveat: The commands `st' and `sr' are now both legal and have very
different meanings. This is because ed(1) extends POSIX to include the
old Berkeley syntax s[rgp]*.
(So should two slashes still be required in the case of the substitute
command, as SunOS ed does?)
1993-08-27 22:14:24 +00:00
jtc
46d985857a
1003.2 requires that lexical comparisons be done in locale specific manner,
...
so we have to use strcoll() instead of strcmp().
1003.2 requires that a null string be returned if a string does not match
a \( \) subexpression.
Replaced fprintf/exit with calls to err and errx as appropriate.
1993-08-17 16:06:00 +00:00
alm
c05c784bea
Nullify pattern after failed regcomp
1993-08-16 09:30:18 +00:00
alm
df01e6297c
added (unsiged) cast to avoid int overflow
...
removed REGEX directive
1993-08-09 21:34:11 +00:00
conklin
00a87780f8
Remove GNU regex.[ch] and use system's regex library. The library is still
...
GNU regex for now, but will be replaced as soon as an alternative is made
availiable.
1993-08-02 16:57:26 +00:00
conklin
11eb94f52d
Remove -I${.CURDIR}, as we now use system's regex.h
1993-08-02 16:43:54 +00:00
conklin
c183859731
Use ./foo.sh, so scripts work if . is not in $PATH.
1993-08-02 16:42:08 +00:00
conklin
9db585a2cc
Use system's posix compliant regex library (GNU regex for now).
1993-08-02 16:40:59 +00:00
conklin
8ba08f2eb5
install new manual page
1993-07-21 23:07:02 +00:00
conklin
4d198a2a3c
Update to my latest expr (fixes bugs with comparison and matching operators)
...
Add man page I wrote.
1993-07-21 22:56:14 +00:00
nate
170ec22c9a
Libcrypt upgrade
1993-07-20 22:57:03 +00:00
alm
ffd56febcd
Consolidate mark code - no functional changes or fixes.
1993-07-02 06:16:28 +00:00
alm
3ee56e1af8
fixed undo within a global command (would corrupt the buffer)
...
changed move within a global to behave as in SunOS
added a couple error messages
1993-06-26 06:47:21 +00:00
alm
46e423f4fa
added POSIX regex to expr
1993-06-19 01:55:46 +00:00
alm
8eb89f7025
POSIX ed version 0.6 by Andrew Moore (alm@netcom.com).
1993-06-18 13:00:14 +00:00
alm
2405a127fa
This commit was generated by cvs2svn to compensate for changes in r16,
...
which included commits to RCS files with non-trunk default branches.
1993-06-18 13:00:14 +00:00
alm
f608495770
POSIX ed version 0.6 by Andrew Moore (alm@netcom.com).
1993-06-18 13:00:14 +00:00
rgrimes
25062ba061
Initial import, 0.1 + pk 0.2.4-B1
1993-06-12 14:58:17 +00:00