Commit Graph

1733 Commits

Author SHA1 Message Date
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
sin
b60882f206 Use putchar() instead of fputc() in uuencode(1) 2014-01-31 15:44:00 +00:00
sin
aab53ef197 Add uuencode(1) 2014-01-31 15:29:11 +00:00
sin
04a32251e4 Use uint32_t instead of unsigned int in cksum(1) 2014-01-31 13:53:28 +00:00
sin
c96fc3a382 Forgot to include these before 2014-01-30 21:51:01 +00:00
sin
4ba6c37839 Ensure we #undef strlcat and strlcpy
These may be implemented as macros so #undef them and use our own
implementation.
2014-01-30 21:04:01 +00:00
sin
f4609e2836 Remove stat(1) from sbase as it is not portable
This utility uses major()/minor() and they are not portable.
It belongs in ubase.
2014-01-30 16:26:40 +00:00
sin
e37e2782a9 Only use major()/minor() if they are available in tar(1)
Otherwise silently ignore them in the archive case.  This is the
same in principle as what we do in the unarchive case.
2014-01-30 16:17:25 +00:00
sin
0a7791a25c Use recurse() in tar(1) instead of ftw(3) 2014-01-30 14:55:38 +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
b1b225c9ee No need to print the name of the program
The name is printed automatically.  Add some missing newlines
as well.
2014-01-30 14:55:18 +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
08ff1c56e7 Update TODO 2014-01-30 11:44:29 +00:00
sin
c83aef2cda Use preprocessor conditionals to check if makedev() is present
makedev() is not portable and is typically implemented as a
macro.  If it exists use it, otherwise silently ignore character
and block devices.
2014-01-28 17:22:48 +00:00
sin
203b52c38a Use getpriority()/setpriority() instead of deprecated nice()
This is now similar to how renice(1) is implemented.
2014-01-28 17:20:20 +00:00
sin
43057f3a39 Remove mknod(1) from sbase
mknod(1) is not POSIX and it is not portable so it should be
in ubase instead of sbase.
2014-01-28 16:53:53 +00:00
sin
7028920ff4 Rename saved_errno' to savederrno' 2014-01-27 15:18:42 +00:00
sin
6a18e77962 Ensure we return a proper error value in setsid(1) 2014-01-27 15:18:30 +00:00
sin
a0fbe3278a Add Markus Teich to LICENSE 2014-01-25 22:53:14 +00:00
sin
eef1cef1d1 Add more people to LICENSE
Hopefully, I've not missed anyone.
2014-01-25 22:50:54 +00:00
sin
e31b8b76ee Add Silvan Jegen to LICENSE 2014-01-25 22:45:28 +00:00
sin
e9a4af87bd Staticise functions in tr(1) 2014-01-25 22:07:40 +00:00
sin
db2c54bee6 oops that should have been enprintf() 2014-01-24 16:46:56 +00:00
sin
b58951b4f0 snprintf() returns the # of chars printed *excluding* '\0' 2014-01-24 16:23:13 +00:00
sin
30620afb6c Check return value of snprintf in mktemp(1) 2014-01-24 16:19:46 +00:00
sin
5be9c21ce4 Use xrealpath() in du(1) 2014-01-23 21:17:24 +00:00
sin
3ef662c988 Check snprintf() return value 2014-01-23 21:17:08 +00:00
sin
cc2d762798 Use the width of the output device by default in mc(1)
If that fails, fallback to 65 characters as before.  If the -c
option is specified then just use that.
2014-01-21 11:23:16 +00:00
sin
fe6144793f Check mmap() return value and unmap at the end 2014-01-20 11:28:21 +00:00