Hiltjo Posthuma
bd99b92e91
parsemode: rework
...
- for octal input: reset mode to 0.
- take umask into account.
- make '=rwx' etc work.
- we wont support crazy but valid modes like "a+rw,g=x,o=g"
- uudecode: use parsemode, mask is 0.
Signed-off-by: Hiltjo Posthuma <hiltjo@codemadness.org>
2014-04-24 11:51:33 +01:00
sin
02d91696b4
Fix char **argv to char *argv[]
2014-04-18 11:54:44 +01:00
Hiltjo Posthuma
560340341f
make parsemode() generic
...
use for uudecode and chmod
Signed-off-by: Hiltjo Posthuma <hiltjo@codemadness.org>
2014-04-09 15:40:32 +01:00
sin
81f9cf2a33
Fix style issue in crypt.c
2014-04-04 11:10:18 +01:00
sin
24a5006f57
Prefix error/warning messages with program name if DEBUG is defined
2014-03-28 16:00:01 +00:00
sin
897efd5f13
Remove "WARNING: " prefix from messages
2014-03-23 18:59:14 +00:00
Hiltjo Posthuma
dd7eb63869
crypt: free line and tiny cleanup
...
Signed-off-by: Hiltjo Posthuma <hiltjo@codemadness.org>
2014-03-23 18:02:46 +00:00
Hiltjo Posthuma
04f32f4d9a
checksum tools: implement -c
...
Signed-off-by: Hiltjo Posthuma <hiltjo@codemadness.org>
2014-03-23 18:02:39 +00:00
Hiltjo Posthuma
18b6e40161
crypt: error status code if an error occured in a file series
...
Signed-off-by: Hiltjo Posthuma <hiltjo@codemadness.org>
2014-03-23 12:27:24 +00:00
Hiltjo Posthuma
7727530b53
crypt: dont error out if a file in a series fails
...
Signed-off-by: Hiltjo Posthuma <hiltjo@codemadness.org>
2014-03-23 12:27:17 +00:00
sin
fe62ed0d48
Preserve permissions when copying files
2014-02-18 16:51:54 +00:00
sin
c96fc3a382
Forgot to include these before
2014-01-30 21:51:01 +00:00
sin
94e97f19cd
No need to use enprintf() with EXIT_FAILURE
...
eprintf() does just that.
2014-01-30 14:55:26 +00:00
sin
fb12183c52
Add strlcpy()/strlcat()
...
Refactor recurse() routine in preparation to moving tar(1) over
to use it instead of the ftw() interface.
2014-01-30 14:55:05 +00:00
sin
b58951b4f0
snprintf() returns the # of chars printed *excluding* '\0'
2014-01-24 16:23:13 +00:00
sin
0b6b84886c
Add newline at end of file
2013-12-04 17:42:33 +00:00
sin
38ca9a24c2
Be a bit more consistent and use uint8_t instead of unsigned char
2013-11-30 20:59:09 +00:00
sin
078fce3f77
Always print the program name
...
This is generally very useful for sbase, especially when we
hit some case that is not implemented and we want to know which
program failed.
2013-11-14 19:00:28 +00:00
sin
b8edf3b4ee
Add weprintf() and replace fprintf(stderr, ...) calls
...
There is still some programs left to be updated for this.
Many of these programs would stop on the first file that they
could not open.
2013-11-13 11:41:43 +00:00
sin
80c5ab46ba
Fix style for function definitions
2013-11-12 13:37:38 +00:00
sin
5b5f062184
Add license file details at top of files
2013-10-07 17:03:34 +01:00
sin
b5a511dacf
Exit with EXIT_SUCCESS/EXIT_FAILURE instead of 0 and 1
...
Fixed for consistency purposes.
2013-10-07 16:44:22 +01:00
sin
573d1954b2
Add cryptmain() and factor out the code from the crypt tools
2013-10-05 13:51:45 +01:00
sin
582511d57b
Fix some warnings about strcpy() etc. on OpenBSD
2013-10-05 13:50:57 +01:00
sin
9e5718282a
Add sha512sum(1)
2013-08-04 11:00:34 -04:00
David Galos
50d9305752
Licensing fix in util/sha256.c
2013-07-20 13:23:13 -04:00
sin
4da54928e7
Add sha256sum(1)
2013-07-20 13:20:16 -04:00
sin
ce124c4894
Do not hardcode the size of md
2013-07-20 00:55:24 -04:00
sin
9ac01f59be
Add crypt.[ch] and update md5sum and sha1sum
...
Factor out the code from md5sum and sha1sum into a util function.
Use FILE * instead of a file descriptor. This will make it a bit
easier/more consistent when we implement support for the -c option.
2013-07-18 09:51:17 -04:00
David Galos
18712b2032
Converting empty for to while in sha1sum
2013-07-05 17:42:30 -04:00
stateless
eec1b415d5
Add sha1sum
...
No support for -c at the moment.
2013-07-05 17:31:43 -04:00
stateless
50054a652c
Add md5sum
...
No support for -c at the moment.
2013-07-05 17:29:43 -04:00
Lorenzo Cogotti
75c97de593
Various fixes, add renice command.
...
This commit adds the renice command and its man page,
it also introduces some fixes:
* Makes nice command more solid, it also makes it respect POSIX return values.
* Fixes estrtol, which produced a misleading error on out of range errors.
* Fixes chgrp.1 NAME section.
Signed-off-by: Christoph Lohmann <20h@r-36.net>
2013-06-14 19:01:04 +02:00
Federico G. Benavento
ae3423e366
pathconf(".", _PC_PATH_MAX) doesn't work from nfs mounted filesystems on BSD systems, use "/" instead.
2013-03-10 17:48:17 -03:00
Christoph Lohmann
f8dc6883a3
Style inquistion for util and some tools.
2013-03-05 21:46:48 +01:00
Robert Ransom
9ea0be3f07
Add missing file (util/getlines.c)
2012-05-22 11:05:07 +00:00
Robert Ransom
572dcc2b83
util/estrtol: Also check for out-of-range values using errno
2012-05-20 12:51:18 +00:00
Connor Lane Smith
fcb8821246
revert to per-cmd usage()
2012-05-15 13:32:56 +01:00
Connor Lane Smith
146cca114e
new ARGBEGIN & usage() function
2012-05-14 21:28:41 +01:00
Connor Lane Smith
6e0f5c1409
seq: some cleanup
2012-05-10 19:20:16 +01:00
William Haddon
cec53d14b1
implement cp and mv and improve rm
2012-01-30 22:41:33 +00:00
Connor Lane Smith
4104affcbd
path_max not useful
2011-06-25 18:49:32 +01:00
Connor Lane Smith
9658c7cfa7
apathmax fix
2011-06-25 17:33:38 +01:00
Connor Lane Smith
33de3bffdb
apathmax
2011-06-25 17:26:44 +01:00
Connor Lane Smith
a051bab859
enmasse: check filename length
2011-06-23 02:08:41 +01:00
Connor Lane Smith
807d45aa80
ln: try link first
2011-06-22 23:45:03 +01:00
Connor Lane Smith
2835d9ecda
enmasse same file check
2011-06-22 23:04:56 +01:00
Connor Lane Smith
d7f9bda740
cc -Wextra
2011-06-21 05:05:37 +01:00
Connor Lane Smith
f24772dcbb
add nohup
2011-06-18 06:41:28 +01:00
Connor Lane Smith
954106050f
rename estrtol
2011-06-10 14:55:01 +01:00