Commit Graph

1711 Commits

Author SHA1 Message Date
Hiltjo Posthuma
ce28f6ca90 cmp: dont output EOF difference is sflag is set
Signed-off-by: Hiltjo Posthuma <hiltjo@codemadness.org>
2014-04-01 16:20:36 +01:00
Hiltjo Posthuma
a7954e8cab cmp: fix line numbers
test case:
	printf 'a\n\na' > t1
	printf 'a\na' > t2
	cmp t1 t2

Signed-off-by: Hiltjo Posthuma <hiltjo@codemadness.org>
2014-04-01 16:20:28 +01:00
Hiltjo Posthuma
1059cf5f17 cmp: make EOF check more clear
Signed-off-by: Hiltjo Posthuma <hiltjo@codemadness.org>
2014-04-01 16:20:21 +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
sin
a6ef67cd3d Use strlcpy() 2014-03-23 18:33:45 +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
bc0de5e7e5 Rename mc(1) to cols(1)
There is an obvious name collision with the popular file manager
midnight commander.
2014-03-12 14:47:38 +00:00
Hiltjo Posthuma
f34e1ae1d0 kill: argc < 2 should be argc < 1
Signed-off-by: Hiltjo Posthuma <hiltjo@codemadness.org>
2014-03-07 18:56:32 +00:00
sin
d9a1030d57 We do symbolic options for chmod(1)
Don't bomb out if the argument is not a valid octal number, it
could very well be something like "chmod +x test".
2014-03-04 11:05:01 +00:00
sin
760690c85e Make code a bit more clear 2014-03-04 10:43:51 +00:00
sin
c28e2a39ec We should not require both files to be present for cmp(1)
If the second file is not present, read from standard input.
2014-03-04 10:36:54 +00:00
sin
99300c9514 Update README
sbase compiles on minix3 as well.
2014-02-27 16:56:59 +00:00
sin
17338bfbb8 id(1) is not portable - move it to ubase 2014-02-27 14:30:21 +00:00
sin
795ffe490d Use the more portable NZERO instead of PRIO_*
We assume the valid range is [-NZERO, NZERO-1].
2014-02-27 14:24:21 +00:00
Daniel Bainton
2773bdaac7 add the man entry for ls -F 2014-02-19 12:35:36 +00:00
sin
fe62ed0d48 Preserve permissions when copying files 2014-02-18 16:51:54 +00:00
sin
73066131ab Add Daniel Bainton to LICENSE 2014-02-18 12:54:25 +00:00
Daniel Bainton
080db637f8 Add the -F flag to ls 2014-02-18 12:54:16 +00:00
sin
c6f59aadbd Simplify ln(1) 2014-02-17 11:44:18 +00:00
sin
13cbb19adc Fix wrong length for sethostname()
This was messed up in the previous commit.
2014-02-14 15:13:20 +00:00
sin
5c6a17ef20 Remove who(1) from README 2014-02-14 15:09:55 +00:00
sin
386aa62b94 Remove who(1) from sbase
It now lives in ubase.
2014-02-14 15:08:52 +00:00
sin
efbce07f94 Use sysconf() instead of HOST_NAME_MAX 2014-02-14 15:03:16 +00:00
sin
7309302e25 Don't check remove() return value 2014-02-14 11:49:39 +00:00
sin
ac47a21b9b Don't complain if we use -f in ln(1) 2014-02-14 11:25:12 +00:00
sin
43b472601d Return proper error values in case execvp() fails 2014-02-13 13:09:00 +00:00
sin
79a913f4e6 We can't use eprintf etc. without using the arg.h macros. 2014-02-13 13:08:54 +00:00
sin
a79472bb1a Minor fix for README 2014-02-12 18:39:31 +00:00
sin
f8dd426745 Add initial README 2014-02-12 14:36:00 +00:00
sin
3bf464c1d6 Use HOST_NAME_MAX in hostname(1) 2014-02-11 11:01:49 +00:00
sin
b0e4b45e3b No need to use do { } while (0) construct 2014-02-04 16:51:34 +00:00
sin
136f2f3b60 Correct error message in uudecode(1) 2014-02-04 15:20:41 +00:00
sin
71461978f2 Error out on invalid mode in uudecode(1) 2014-02-04 15:19:23 +00:00
sin
df035a6a2c Break out fclose() 2014-02-04 15:16:16 +00:00
sin
6da5fb7153 Rename check*() to parse*() to be consistent with the rest of sbase 2014-02-04 15:08:08 +00:00
sin
d7383490dc Use chmod() directly 2014-02-04 15:08:02 +00:00
sin
bf2b270946 A couple more stylistic changes to uudecode(1) 2014-02-04 14:46:34 +00:00
sin
ed9985205b Explicitly check for '\0' at the start and exit early 2014-02-04 14:38:43 +00:00
sin
c2db1b9ec6 Remember to fclose(nfp) as well 2014-02-04 14:35:13 +00:00
sin
4d8c3d4dc2 Simplify uudecode(1) and fix some bugs 2014-02-04 14:32:36 +00:00
dsp
7008d751b2 Initial commit of the uudecode tool and man page
Currently it operates only on regular files and does not
support Base64.
2014-02-02 20:50:31 +00:00
sin
d69ca7c9c3 Add FRIGN to LICENSE 2014-02-01 20:16:56 +00:00
FRIGN
a4d9b7b11e Use PRIu32 and avoid cast 2014-02-01 20:16:14 +00:00
dsp
2e98468788 check for valid octal input and crude range check on that for validity 2014-02-01 19:50:52 +00:00
sin
31894adad2 Use printf() instead of fprintf() in uuencode(1) 2014-01-31 15:55:38 +00:00
sin
cb5733ea41 Make the buffer 45 bytes exactly for uuencode(1) 2014-01-31 15:45:26 +00:00