rillig
33a964ec67
uncompress: if the source is broken, don't delete the target
...
Fixes the second half of PR bin/19722, reported by Giorgos Keramidas.
2022-05-22 21:39:44 +00:00
rillig
974afd5a88
uncompress: if the source doesn't exist, don't touch the target
...
Fixes part of PR bin/19722, reported by Giorgos Keramidas.
2022-05-22 21:16:50 +00:00
rillig
5a37d41e13
compress: normalize indentation and spacing
...
No binary change.
2022-05-22 19:41:49 +00:00
joerg
9f9e1b91cd
Use __printflike and __dead
2011-08-30 23:08:05 +00:00
lukem
36869194a3
Fix -Wcast-qual and -Wsign-compare issues
2009-04-11 12:24:37 +00:00
lukem
98e5374ccb
Remove the \n and tabs from the __COPYRIGHT() strings.
...
Tweak to use a consistent format.
2008-07-21 14:19:20 +00:00
christos
857164eeb5
Coverity CID 2536: Clarify the error path further.
2006-04-09 20:01:40 +00:00
dsl
2ab52a9ec8
Rework the way that files are closed and unlinked on error.
...
In particular avoid calling fclose() again once it has failed.
Also multply 'oreg' by 2 once we modify the file - so we know when to
unlink it on error.
Fixes Coverty CIDs 2535 and 2536
2006-04-05 20:24:38 +00:00
wiz
bb38c4ebcc
Sync usage with man page. From Kouichirou Hiratsuka in PR 26197.
2004-07-09 12:14:37 +00:00
agc
89aaa1bb64
Move UCB-licensed code from 4-clause to 3-clause licence.
...
Patches provided by Joel Baker in PR 22365, verified by myself.
2003-08-07 11:13:06 +00:00
wiz
806d4c812f
__STDC__ is always defined on NetBSD. ANSIfy while I'm here.
2002-05-26 22:21:22 +00:00
is
135600f947
More format string cleanup by sommerfeld.
2000-10-11 14:46:00 +00:00
wsanchez
cc084df5da
Init style to quiet compiler.
...
Allow zcat hard link to compress rather than using zcat.sh wrapper; same as uncompress.
Don't install zcat, however; gzcat seems to be living in /usr/bin/zcat at the moment.
1998-10-08 01:56:28 +00:00
kleink
00bacf2e91
Attempt to restore a file's flags using chflags() only if the original file
...
ad any flags set (that is, st_flags is non-zero); this avoids a warning when
(un-)compressing a file on a file-system that does not support flags. Fixes
PR bin/4981.
1998-03-10 12:45:44 +00:00
mycroft
1ea2e990d3
Use double, not float.
1997-10-19 15:18:43 +00:00
lukem
2124f91f12
getopt returns -1 not EOF
1997-10-18 13:04:29 +00:00
lukem
87f4122c62
* cleanup for WARNS=1
...
* deprecate register
* rindex -> strrchr
* fix .Nm usage
1997-09-15 10:58:35 +00:00
mikel
5504577051
stdin and stdout are not regular files; fixes PR bin/3112
...
skip size checks, unlinking, &c. as specified by manpage if output is
not a regular file
replace manifest constant with BUFSIZ
1997-01-16 04:51:29 +00:00
abrown
091ed31b08
Add missing braces to for-loop to make compress work again after changes
...
between versions 1.9 and 1.10 (dumped core when not used as a filter).
1996-08-20 18:24:46 +00:00
mrg
a2c61dd4d4
fix lossage caused by compress' usage of /dev/stdout and /dev/stdin
...
combined with the (broken?) versions of these files provided with
the fdesc mount. fixes PR#774 & PR#957.
1996-06-30 12:41:44 +00:00
glass
7025c9c2f2
new rcsid format. what is the format for shell scripts
1995-03-26 09:44:29 +00:00
cgd
92ca4cb3d9
add zopen declaration.
1994-12-24 16:27:18 +00:00
mycroft
4b8d7f5ee1
Fix RCS id format.
1994-10-06 16:43:17 +00:00
cgd
53d6e686d5
clean up import, add rcsid's.
1994-06-13 14:48:14 +00:00
mycroft
e9d867ef50
Add RCS identifiers.
1993-08-01 17:54:45 +00:00
mycroft
d3e01f582d
Whose inane idea was it to copy this list?
...
BTW, we need a `-r' option.
1993-06-24 06:11:34 +00:00
mycroft
d343706d65
Fix fencepost error.
1993-06-23 06:52:08 +00:00
deraadt
8ae65d6e54
patch00144 by Julian Stacey <stacey@guug.de>: compress.c had a
...
path[100] instead of path[MAXPATHLEN]
1993-05-25 07:05:18 +00:00
cgd
61f282557f
initial import of 386bsd-0.1 sources
1993-03-21 09:45:37 +00:00