[hackers] [sbase] No need for realpath() to call malloc() in du(1) || sin

2013-10-17 Thread git
commit 9e321b69d2a4f2af1e067c1f58a0c8237e47a248 Author: sin s...@2f30.org Date: Thu Oct 17 14:06:17 2013 +0100 No need for realpath() to call malloc() in du(1) Print links correctly as well. diff --git a/du.c b/du.c index edb2e50..b83aba9 100644 --- a/du.c +++ b/du.c @@ -12,6

[hackers] [ubase] Add initial su(1) || sin

2013-10-17 Thread git
commit ff2e11638f03fb259b0d698996e998bd7a431974 Author: sin s...@2f30.org Date: Thu Oct 17 23:02:55 2013 +0100 Add initial su(1) diff --git a/Makefile b/Makefile index 7dd2704..d9ff21e 100644 --- a/Makefile +++ b/Makefile @@ -36,6 +36,7 @@ SRC = \ pivot_root.c\ ps.c

[hackers] [ubase] Implement -l support for su(1) || sin

2013-10-18 Thread git
commit 784c6a5acffa7a0cba0b875b26e1c20db4a5613e Author: sin s...@2f30.org Date: Fri Oct 18 11:14:36 2013 +0100 Implement -l support for su(1) diff --git a/su.c b/su.c index 6b0bac0..1435b30 100644 --- a/su.c +++ b/su.c @@ -12,6 +12,9 @@ extern char **environ; +static char *msetenv

[hackers] [ubase] Set SHELL environment variable by default || sin

2013-10-18 Thread git
commit 7e59506b4b6c479cabc857bd79d89ec2b7dfe1e3 Author: sin s...@2f30.org Date: Fri Oct 18 11:20:59 2013 +0100 Set SHELL environment variable by default If target user is not root also set USER and LOGNAME. diff --git a/su.c b/su.c index 1435b30..9d8f550 100644 --- a/su.c +++ b

[hackers] [sbase] Add more commands to TODO || sin

2013-10-18 Thread git
commit 6a680269bfdc3e06b5090e3f510b6ee99e12c6da Author: sin s...@2f30.org Date: Fri Oct 18 15:18:37 2013 +0100 Add more commands to TODO diff --git a/TODO b/TODO index 3f7dc12..b2a413b 100644 --- a/TODO +++ b/TODO @@ -31,3 +31,13 @@ patch ed awk + +bc/dc + +fmt + +install + +find (bare

[hackers] [ubase] If we are preserving the environment use SHELL instead of pw-pw_shell || sin

2013-10-18 Thread git
commit bfb4b38cffed5cebe1617386befae7a5980df87c Author: sin s...@2f30.org Date: Fri Oct 18 16:22:24 2013 +0100 If we are preserving the environment use SHELL instead of pw-pw_shell diff --git a/su.c b/su.c index 1218a13..94ead18 100644 --- a/su.c +++ b/su.c @@ -112,7 +112,8 @@ main(int

[hackers] [surf] Add zoom level support. || Christoph Lohmann

2013-10-19 Thread git
commit 432f45a85213a78da207c63890ed7f85afff5478 Author: Christoph Lohmann 2...@r-36.net Date: Sat Oct 19 18:55:53 2013 +0200 Add zoom level support. diff --git a/config.def.h b/config.def.h index 7927b42..b81e6b0 100644 --- a/config.def.h +++ b/config.def.h @@ -13,7 +13,8 @@ static Bool

[hackers] [sbase] Add sticky bit to documentation. || Markus Wichmann

2013-10-20 Thread git
commit 298703ff2dde5bf8484ac8e101265884884eb758 Author: Markus Wichmann nullp...@gmx.net Date: Sun Oct 20 10:56:49 2013 +0200 Add sticky bit to documentation. diff --git a/chmod.1 b/chmod.1 index 579aa68..4deb792 100644 --- a/chmod.1 +++ b/chmod.1 @@ -9,7 +9,7 @@ chmod \- change file mode

[hackers] [sbase] Use estrtol() instead of atoi() || sin

2013-10-27 Thread git
commit b2a0362bf856138c3b78a976a2d851acfa6c8dfc Author: sin s...@2f30.org Date: Sun Oct 27 09:46:21 2013 + Use estrtol() instead of atoi() diff --git a/seq.c b/seq.c index 4023876..5b3d5f0 100644 --- a/seq.c +++ b/seq.c @@ -98,7 +98,7 @@ digitsleft(const char *d) if(*d

[hackers] [st] Fixed lock up when system time jumps backwards || Rob Pilling

2013-10-27 Thread git
commit 489982d4b8442af25a380f8c22be542055cda81f Author: Rob Pilling rob@egbert Date: Wed Jun 19 21:24:01 2013 +0100 Fixed lock up when system time jumps backwards Signed-off-by: Christoph Lohmann 2...@r-36.net diff --git a/st.c b/st.c index 50b58a7..d0a6218 100644 --- a/st.c +++ b

[hackers] [st] Simplify logic in match(). || Mark Edgar

2013-10-28 Thread git
commit 1fa27b93f9a78ee78a35a5449bb8c4d0c3ef0f1b Author: Mark Edgar medgar...@gmail.com Date: Sat Oct 19 14:56:40 2013 +0200 Simplify logic in match(). diff --git a/st.c b/st.c index 8cfa2f7..da2ce3f 100644 --- a/st.c +++ b/st.c @@ -3501,15 +3501,7 @@ focus(XEvent *ev) { static inline

[hackers] [sbase] No need to use USED() in arg.h for sbase || sin

2013-11-07 Thread git
commit c55948ba91c7daab7a269ba8c70c7432d93a1b87 Author: sin s...@2f30.org Date: Wed Nov 6 13:22:13 2013 + No need to use USED() in arg.h for sbase Tested on Linux and OpenBSD (with gcc and pcc). diff --git a/arg.h b/arg.h index 2b189fe..2009b70 100644 --- a/arg.h +++ b/arg.h

[hackers] [sbase] Add support for -k (checking sticky bit) to test(1) || sin

2013-11-11 Thread git
commit c23616555bf2830d478508f14a8d6f2504cda835 Author: sin s...@2f30.org Date: Mon Nov 11 11:37:07 2013 + Add support for -k (checking sticky bit) to test(1) diff --git a/test.1 b/test.1 index e7de2e0..08bac1d 100644 --- a/test.1 +++ b/test.1 @@ -29,6 +29,9 @@ ILE exists

[hackers] [sbase] Fix styling issue in test(1) || sin

2013-11-11 Thread git
commit 11c078d116b828732716223101f6e72e1bb52e34 Author: sin s...@2f30.org Date: Mon Nov 11 11:27:18 2013 + Fix styling issue in test(1) diff --git a/test.c b/test.c index 2e42f0f..495ecb2 100644 --- a/test.c +++ b/test.c @@ -108,7 +108,9 @@ binary(const char *arg1, const char *op

[hackers] [sbase] Add ARGNUM and ARGNUMF(base) || dsp

2013-11-12 Thread git
commit 3f9e501f6b8bd747ac8127ca56e34db0409e03d1 Author: dsp d...@2f30.org Date: Mon Nov 11 19:53:01 2013 + Add ARGNUM and ARGNUMF(base) This is useful to support the obsolete syntax -NUM for tools like head, tail and fold. diff --git a/arg.h b/arg.h index 2009b70..b8f48c0

[hackers] [ubase] Add passwd(1) to TODO || sin

2013-11-12 Thread git
commit 57e7137a3a03a22ea25a2ba536798fe6fa487e6c Author: sin s...@2f30.org Date: Tue Nov 12 13:22:13 2013 + Add passwd(1) to TODO diff --git a/TODO b/TODO index 345fbf5..058eb77 100644 --- a/TODO +++ b/TODO @@ -13,6 +13,7 @@ Tools * sysctl * lspci * mkswap [-L] + * passwd Other =

[hackers] [sbase] _brk, _argc and _argv are reserved for the implementation || sin

2013-11-14 Thread git
].* are reserved for any usage and _.* is reserved for file scope identifiers We just rename them to brk_, argc_ and argv_. diff --git a/arg.h b/arg.h index acae756..04b8514 100644 --- a/arg.h +++ b/arg.h @@ -13,21 +13,21 @@ extern char *argv0; argv[0

[hackers] [sbase] Forgot to update manpage for mktemp(1) || sin

2013-11-14 Thread git
commit 7a2105f5bd6ae077baedad7dd62d0fcae9270ba8 Author: sin s...@2f30.org Date: Thu Nov 14 19:49:36 2013 + Forgot to update manpage for mktemp(1) diff --git a/mktemp.1 b/mktemp.1 index b81461b..6e24e2b 100644 --- a/mktemp.1 +++ b/mktemp.1 @@ -10,7 +10,8 @@ mktemp \- make temporary

[hackers] [sbase] Rename __ARG_H__ to ARG_H__ || sin

2013-11-25 Thread git
commit 651dbdd700baa85354aaa7265c0e8850ff405c48 Author: sin s...@2f30.org Date: Mon Nov 25 21:29:20 2013 + Rename __ARG_H__ to ARG_H__ __* is reserved so do not use it. diff --git a/arg.h b/arg.h index 04b8514..4df77a7 100644 --- a/arg.h +++ b/arg.h @@ -3,8 +3,8 @@ * by 20h

[hackers] [sbase] We do not name parameters in declarations || sin

2013-11-30 Thread git
commit abd5a0e573ccfe994d9df84081b328968cc8af9c Author: sin s...@2f30.org Date: Fri Nov 22 13:40:08 2013 + We do not name parameters in declarations diff --git a/crypt.h b/crypt.h index 359eaf2..197191f 100644 --- a/crypt.h +++ b/crypt.h @@ -6,8 +6,7 @@ struct crypt_ops { void

[hackers] [sbase] Forgot to remove argc from function decl || sin

2013-11-30 Thread git
commit f1f0fba630155704558c6aecff7ca100b5970be5 Author: sin s...@2f30.org Date: Sat Nov 30 21:11:19 2013 + Forgot to remove argc from function decl Thanks FRIGN for noticing this. diff --git a/crypt.h b/crypt.h index 197191f..7242cdf 100644 --- a/crypt.h +++ b/crypt.h @@ -6,7

[hackers] [sbase] Factor out code printing information for the current process || sin

2013-12-01 Thread git
commit 137ebef3aca354e79d259553c3a0756cda0af9cc Author: sin s...@2f30.org Date: Sun Dec 1 09:58:02 2013 + Factor out code printing information for the current process diff --git a/id.c b/id.c index 09253cc..00068a3 100644 --- a/id.c +++ b/id.c @@ -8,6 +8,8 @@ #include limits.h

[hackers] [sbase] Add support to display user and group info for any user || sin

2013-12-01 Thread git
--git a/id.1 b/id.1 index a5678e3..8252773 100644 --- a/id.1 +++ b/id.1 @@ -1,8 +1,12 @@ .TH ID 1 sbase\-VERSION .SH NAME id \- print real and effective user and group IDs -.SH DESCRIPTION +.SH SYNOPSIS .B id -Print user and group information for the current user. +.RB [ user ] +.SH DESCRIPTION

[hackers] [sbase] Add newline at end of file || sin

2013-12-04 Thread git
commit 0b6b84886cbf1dc3f26da8c8935da35553b62aed Author: sin s...@2f30.org Date: Wed Dec 4 17:41:52 2013 + Add newline at end of file diff --git a/util/eprintf.c b/util/eprintf.c index c878e81..bd4e090 100644 --- a/util/eprintf.c +++ b/util/eprintf.c @@ -60,4 +60,4 @@ weprintf(const

[hackers] [st] Fix rmul definition || Eric Pruitt

2013-12-10 Thread git
, because it is going to modify also another attributes not related. diff --git a/st.info b/st.info index 94fce22..7526141 100644 --- a/st.info +++ b/st.info @@ -161,7 +161,7 @@ st| simpleterm, rmir=\E[4l, rmkx=\E[?1l\E, rmso=\E[27m, - rmul=\E[m, + rmul=\E[24m

[hackers] [sbase] Revert Fix relocation error on OpenBSD (amd64) when compiling with pcc || sin

2013-12-21 Thread git
and common options for the default case. diff --git a/config.mk b/config.mk index 6441d6b..a3ffc4d 100644 --- a/config.mk +++ b/config.mk @@ -9,7 +9,7 @@ MANPREFIX = $(PREFIX)/share/man #CC = musl-gcc LD = $(CC) CPPFLAGS = -D_BSD_SOURCE -D_GNU_SOURCE -CFLAGS = -g -ansi -Wall -Wno-long

[hackers] [sbase] Rename pusharg() to deinputstr() || sin

2014-01-08 Thread git
commit cec487585cad1d652dfafd9d41cf1f9dcff265be Author: sin s...@2f30.org Date: Wed Jan 8 20:22:10 2014 + Rename pusharg() to deinputstr() diff --git a/xargs.c b/xargs.c index b0c43b5..66087cf 100644 --- a/xargs.c +++ b/xargs.c @@ -19,7 +19,7 @@ static int eatspace(void); static int

[hackers] [sbase] Correctly handle leftover input || sin

2014-01-08 Thread git
and process it in the next run. diff --git a/xargs.c b/xargs.c index 09002d9..59028f1 100644 --- a/xargs.c +++ b/xargs.c @@ -14,7 +14,6 @@ enum { static int inputc(void); static void deinputc(int); -static void deinputstr(char *); static void fillargbuf(int); static int eatspace(void); static int

[hackers] [sbase] If there's no newline we don't count the last word - fix it || sin

2014-01-10 Thread git
commit b744ad5216e4ab66151d97086162c8cf8aff8380 Author: sin s...@2f30.org Date: Fri Jan 10 22:51:13 2014 + If there's no newline we don't count the last word - fix it diff --git a/wc.c b/wc.c index ba76a68..cd0bf46 100644 --- a/wc.c +++ b/wc.c @@ -95,6 +95,8 @@ wc(FILE *fp, const char

[hackers] [sbase] No need to dynamically allocate *cmd[] || sin

2014-01-16 Thread git
commit 7969fcd2c20cd6b5ba01ee24f40a232a3e71c300 Author: sin s...@2f30.org Date: Thu Jan 16 11:51:19 2014 + No need to dynamically allocate *cmd[] diff --git a/xargs.c b/xargs.c index b70c158..102c225 100644 --- a/xargs.c +++ b/xargs.c @@ -22,7 +22,7 @@ static char *poparg(void

[hackers] [sbase] Add the tr program including man page || Silvan Jegen

2014-01-20 Thread git
commit 38f429a3d26122af61b73a8965b1e8e9043c0a0c Author: Silvan Jegen s.je...@gmail.com Date: Fri Nov 15 17:25:10 2013 +0100 Add the tr program including man page diff --git a/Makefile b/Makefile index 81dfaf6..ee84221 100644 --- a/Makefile +++ b/Makefile @@ -81,6 +81,7 @@ SRC

[hackers] [tabbed] Release 0.6. || Christoph Lohmann

2014-01-21 Thread git
commit 53a43774db126e04558ebdd576f378d27ed1e166 Author: Christoph Lohmann 2...@r-36.net Date: Tue Jan 21 19:22:03 2014 +0100 Release 0.6. diff --git a/config.mk b/config.mk index b0a376f..5279711 100644 --- a/config.mk +++ b/config.mk @@ -1,5 +1,5 @@ # tabbed version -VERSION = 0.5

[hackers] [tabbed] Release 0.6. || Christoph Lohmann

2014-01-21 Thread git
commit 53a43774db126e04558ebdd576f378d27ed1e166 Author: Christoph Lohmann 2...@r-36.net Date: Tue Jan 21 19:22:03 2014 +0100 Release 0.6. diff --git a/config.mk b/config.mk index b0a376f..5279711 100644 --- a/config.mk +++ b/config.mk @@ -1,5 +1,5 @@ # tabbed version -VERSION = 0.5

[hackers] [sbase] Use uint32_t instead of unsigned int in cksum(1) || sin

2014-01-31 Thread git
commit 04a32251e413495b9aa1a5a727a17e76ce0d8b13 Author: sin s...@2f30.org Date: Fri Jan 31 13:51:10 2014 + Use uint32_t instead of unsigned int in cksum(1) diff --git a/cksum.c b/cksum.c index 8347a88..25f7274 100644 --- a/cksum.c +++ b/cksum.c @@ -1,4 +1,5 @@ /* See LICENSE file

[hackers] [sbase] Use putchar() instead of fputc() in uuencode(1) || sin

2014-01-31 Thread git
commit b60882f2064e58c5e4cf98a2987e2d1022315ee4 Author: sin s...@2f30.org Date: Fri Jan 31 15:42:20 2014 + Use putchar() instead of fputc() in uuencode(1) diff --git a/uuencode.c b/uuencode.c index a400180..3b7a716 100644 --- a/uuencode.c +++ b/uuencode.c @@ -53,7 +53,7 @@ uuencode

[hackers] [sbase] Make the buffer 45 bytes exactly for uuencode(1) || sin

2014-01-31 Thread git
commit cb5733ea414e36d179f44c2aa04b606321a9197e Author: sin s...@2f30.org Date: Fri Jan 31 15:43:37 2014 + Make the buffer 45 bytes exactly for uuencode(1) diff --git a/uuencode.c b/uuencode.c index 3b7a716..0766e39 100644 --- a/uuencode.c +++ b/uuencode.c @@ -44,14 +44,14 @@ static

[hackers] [ubase] Update TODO - add getty and login || sin

2014-02-06 Thread git
commit d2815a5aa65972c84c1f17cea41617173a32f0c2 Author: sin s...@2f30.org Date: Thu Feb 6 18:00:47 2014 + Update TODO - add getty and login diff --git a/TODO b/TODO index 058eb77..64518fc 100644 --- a/TODO +++ b/TODO @@ -14,6 +14,8 @@ Tools * lspci * mkswap [-L] * passwd

[hackers] [ubase] Add Carlos J. Torres to LICENSE || sin

2014-02-09 Thread git
commit 33c94d161d9ec06c1816e19c5f82e837b84c049e Author: sin s...@2f30.org Date: Sun Feb 9 11:07:36 2014 + Add Carlos J. Torres to LICENSE diff --git a/LICENSE b/LICENSE index 390dde5..2f3b56f 100644 --- a/LICENSE +++ b/LICENSE @@ -4,6 +4,7 @@ MIT/X Consortium License © 2013 oblique

[hackers] [ubase] Remove implemented items from TODO || sin

2014-02-09 Thread git
commit bb87246743a341cd88826c830158f875542bd816 Author: sin s...@2f30.org Date: Sun Feb 9 12:32:33 2014 + Remove implemented items from TODO diff --git a/TODO b/TODO index 64518fc..7502efc 100644 --- a/TODO +++ b/TODO @@ -6,8 +6,6 @@ Tools * swaplabel(8) * last(1) * losetup(8

[hackers] [ubase] Guard against strlcpy()/strlcat() being implemented as macros || sin

2014-02-10 Thread git
commit a8e1ea139810054ffd25bd68f5d3a42bdbe1a058 Author: sin s...@2f30.org Date: Mon Feb 10 13:14:12 2014 + Guard against strlcpy()/strlcat() being implemented as macros diff --git a/util.h b/util.h index a643205..c478579 100644 --- a/util.h +++ b/util.h @@ -14,6 +14,8 @@ void eprintf

[hackers] [ubase] Ensure opts is null-terminated before calling strcat() || sin

2014-02-10 Thread git
commit 471432a9e69cfa6df095089838f779b73e916ed4 Author: sin s...@2f30.org Date: Mon Feb 10 19:06:42 2014 + Ensure opts is null-terminated before calling strcat() diff --git a/insmod.c b/insmod.c index e175a1c..484c544 100644 --- a/insmod.c +++ b/insmod.c @@ -54,6 +54,7 @@ main(int argc

[hackers] [ubase] Use calloc() instead of malloc() + memset() || sin

2014-02-10 Thread git
commit 9a4fba02519efc4382fd605ec144ace2fd461798 Author: sin s...@2f30.org Date: Mon Feb 10 19:28:39 2014 + Use calloc() instead of malloc() + memset() diff --git a/insmod.c b/insmod.c index 484c544..730b71a 100644 --- a/insmod.c +++ b/insmod.c @@ -51,10 +51,9 @@ main(int argc, char

[hackers] [ubase] Don't die on vhangup() failure || sin

2014-02-11 Thread git
commit 48b505fad321ecab5a6360fd7b92e1e7a85e3d63 Author: sin s...@2f30.org Date: Tue Feb 11 10:14:09 2014 + Don't die on vhangup() failure We might be able to continue at this point. diff --git a/getty.c b/getty.c index 46781f6..ad15279 100644 --- a/getty.c +++ b/getty.c

[hackers] [ubase] Allow getty to execute another program instead of /bin/login || sin

2014-02-11 Thread git
commit 5d06ac46883b787dc7f4c6e889bb4b7d442b28bb Author: sin s...@2f30.org Date: Tue Feb 11 10:36:23 2014 + Allow getty to execute another program instead of /bin/login diff --git a/getty.c b/getty.c index ad15279..6e658cd 100644 --- a/getty.c +++ b/getty.c @@ -13,7 +13,7 @@ static

[hackers] [sbase] Use HOST_NAME_MAX in hostname(1) || sin

2014-02-11 Thread git
commit 3bf464c1d62176a2f78924ff32b220d3893677bd Author: sin s...@2f30.org Date: Tue Feb 11 10:59:53 2014 + Use HOST_NAME_MAX in hostname(1) diff --git a/hostname.c b/hostname.c index 4a377d9..5a8b2eb 100644 --- a/hostname.c +++ b/hostname.c @@ -1,8 +1,9 @@ /* See LICENSE file

[hackers] [ubase] Print hostname as well in getty || sin

2014-02-11 Thread git
commit 1f783e7d96c01e9b40da81098d67a785b800a801 Author: sin s...@2f30.org Date: Tue Feb 11 11:09:00 2014 + Print hostname as well in getty diff --git a/getty.c b/getty.c index 1c8f236..33fb450 100644 --- a/getty.c +++ b/getty.c @@ -26,6 +26,7 @@ main(int argc, char *argv[]) int

[hackers] [sbase] Add initial README || sin

2014-02-12 Thread git
commit f8dd426745df8c651f4b3589cc038d34a78ed63b Author: sin s...@2f30.org Date: Wed Feb 12 14:34:09 2014 + Add initial README diff --git a/README b/README new file mode 100644 index 000..0eb205d --- /dev/null +++ b/README @@ -0,0 +1,49 @@ +sbase - suckless unix tools

[hackers] [sbase] Return proper error values in case execvp() fails || sin

2014-02-13 Thread git
commit 43b472601dc0ccefac66cabaf564ce85d6014762 Author: sin s...@2f30.org Date: Thu Feb 13 13:02:12 2014 + Return proper error values in case execvp() fails diff --git a/chroot.c b/chroot.c index 92263c1..9569ad8 100644 --- a/chroot.c +++ b/chroot.c @@ -1,4 +1,5 @@ /* See LICENSE file

[hackers] [sbase] Don't check remove() return value || sin

2014-02-14 Thread git
commit 7309302e25a05aaa69e1d65ac9ae70e82e32c1d9 Author: sin s...@2f30.org Date: Fri Feb 14 11:47:34 2014 + Don't check remove() return value diff --git a/ln.c b/ln.c index 7dba59b..12be44e 100644 --- a/ln.c +++ b/ln.c @@ -42,10 +42,8 @@ ln(const char *s1, const char *s2) int

[hackers] [ubase] lsusb: initialize variables to 0, fix type warning || Hiltjo Posthuma

2014-02-14 Thread git
commit 923773f9d888a8c72efc93cbeb46fbd5992e2125 Author: Hiltjo Posthuma hil...@codemadness.org Date: Fri Feb 14 14:42:48 2014 +0100 lsusb: initialize variables to 0, fix type warning Signed-off-by: Hiltjo Posthuma hil...@codemadness.org diff --git a/lsusb.c b/lsusb.c index 362c4f4

[hackers] [ubase] stat: assign fn before loop || Hiltjo Posthuma

2014-02-14 Thread git
commit 68c3146a9def993741f2e4dab515aa8bfb1fb4e1 Author: Hiltjo Posthuma hil...@codemadness.org Date: Fri Feb 14 14:48:24 2014 +0100 stat: assign fn before loop Signed-off-by: Hiltjo Posthuma hil...@codemadness.org diff --git a/stat.c b/stat.c index 7b55966..93c4991 100644

[hackers] [ubase] remove some signed / unsigned type warnings || Hiltjo Posthuma

2014-02-14 Thread git
commit c5f17bd3dc9aeb99a9a95b0854807e7743a5d07a Author: Hiltjo Posthuma hil...@codemadness.org Date: Fri Feb 14 14:52:04 2014 +0100 remove some signed / unsigned type warnings Signed-off-by: Hiltjo Posthuma hil...@codemadness.org diff --git a/chvt.c b/chvt.c index a56b4b0..d1e604c

[hackers] [ubase] Import who from sbase || sin

2014-02-14 Thread git
commit 422f400c2182ef0cdcdf0e237aac2bb9a5a9dd03 Author: sin s...@2f30.org Date: Fri Feb 14 15:03:48 2014 + Import who from sbase diff --git a/Makefile b/Makefile index 0cf14d2..f7c3cf8 100644 --- a/Makefile +++ b/Makefile @@ -48,7 +48,8 @@ SRC = \ umount.c

[hackers] [sbase] Remove who(1) from sbase || sin

2014-02-14 Thread git
commit 386aa62b94fd19a5ca77be019c9236c0fec20cb5 Author: sin s...@2f30.org Date: Fri Feb 14 15:04:43 2014 + Remove who(1) from sbase It now lives in ubase. diff --git a/Makefile b/Makefile index 762d345..9974ae7 100644 --- a/Makefile +++ b/Makefile @@ -95,7 +95,6 @@ SRC

[hackers] [sbase] Remove who(1) from README || sin

2014-02-14 Thread git
commit 5c6a17ef206d9104b00d558c3eb0173927456b25 Author: sin s...@2f30.org Date: Fri Feb 14 15:08:03 2014 + Remove who(1) from README diff --git a/README b/README index 3e044ec..246f871 100644 --- a/README +++ b/README @@ -11,7 +11,7 @@ The following programs are currently implemented

[hackers] [surf] Enable resizable text areas. || Christoph Lohmann

2014-02-16 Thread git
commit f8f0c30f3ef60c024520cea5179ca2ddeb1de000 Author: Christoph Lohmann 2...@r-36.net Date: Sun Feb 16 17:17:15 2014 +0100 Enable resizable text areas. diff --git a/surf.c b/surf.c index 654353d..bcb3a7b 100644 --- a/surf.c +++ b/surf.c @@ -848,6 +848,8 @@ newclient(void

[hackers] [ubase] Preserve getty environment in login || sin

2014-02-17 Thread git
commit d7ef6ea895a18133e6b296032de37226fceb6a66 Author: sin s...@2f30.org Date: Mon Feb 17 11:30:56 2014 + Preserve getty environment in login diff --git a/getty.c b/getty.c index 6d6c747..d9c7902 100644 --- a/getty.c +++ b/getty.c @@ -108,5 +108,5 @@ main(int argc, char *argv

[hackers] [sbase] Add the -F flag to ls || Daniel Bainton

2014-02-18 Thread git
commit 080db637f8f76fb1a433963c08248f574cd07db7 Author: Daniel Bainton d...@driftaway.org Date: Mon Feb 17 14:41:09 2014 + Add the -F flag to ls diff --git a/ls.c b/ls.c index f4433ae..bc6c463 100644 --- a/ls.c +++ b/ls.c @@ -31,6 +31,7 @@ static void output(Entry *); static bool

[hackers] [ubase] Use setenv() instead of putenv() in getty || sin

2014-02-24 Thread git
commit a6263b656ee1c0ce0f8d28c010caa84b81e60663 Author: sin s...@2f30.org Date: Mon Feb 24 12:26:40 2014 + Use setenv() instead of putenv() in getty diff --git a/getty.c b/getty.c index d9c7902..73f918d 100644 --- a/getty.c +++ b/getty.c @@ -18,7 +18,7 @@ usage(void) } static char

[hackers] [ubase] Update unshare(1) usage || sin

2014-02-24 Thread git
commit 3f660d71d3539d0a5fc8cb2657ab67d42abd6cd9 Author: sin s...@2f30.org Date: Mon Feb 24 13:50:15 2014 + Update unshare(1) usage diff --git a/unshare.c b/unshare.c index 06869ed..7251d5e 100644 --- a/unshare.c +++ b/unshare.c @@ -10,7 +10,7 @@ static void usage(void

[hackers] [ubase] The flag for unshare(1) is 'U' not 'u' || sin

2014-02-24 Thread git
commit 2c98e18a33a95269a17a6c4e7e5d2c86a1b7bfdc Author: sin s...@2f30.org Date: Mon Feb 24 13:51:03 2014 + The flag for unshare(1) is 'U' not 'u' diff --git a/unshare.c b/unshare.c index 7251d5e..a8d4aba 100644 --- a/unshare.c +++ b/unshare.c @@ -10,7 +10,7 @@ static void usage(void

[hackers] [sbase] Use the more portable NZERO instead of PRIO_* || sin

2014-02-27 Thread git
commit 795ffe490d24a6e85b7717f9ad6ec7b29469500e Author: sin s...@2f30.org Date: Thu Feb 27 14:19:36 2014 + Use the more portable NZERO instead of PRIO_* We assume the valid range is [-NZERO, NZERO-1]. diff --git a/nice.c b/nice.c index 0ef6256..f58a23b 100644 --- a/nice.c

[hackers] [sbase] id(1) is not portable - move it to ubase || sin

2014-02-27 Thread git
commit 17338bfbb881d7944b6ac975c97941fee6036d1c Author: sin s...@2f30.org Date: Thu Feb 27 14:26:22 2014 + id(1) is not portable - move it to ubase diff --git a/Makefile b/Makefile index 9974ae7..9aa8723 100644 --- a/Makefile +++ b/Makefile @@ -50,7 +50,6 @@ SRC = \ grep.c

[hackers] [ubase] Import id(1) from sbase || sin

2014-02-27 Thread git
commit 02e0a1de08e9f5a9983c1f9ddce8bbd2ed7c Author: sin s...@2f30.org Date: Thu Feb 27 14:27:28 2014 + Import id(1) from sbase diff --git a/Makefile b/Makefile index 63d4aae..dccfe4f 100644 --- a/Makefile +++ b/Makefile @@ -27,6 +27,7 @@ SRC = \ free.c

[hackers] [ubase] Update manpages - these tools are in ubase now || sin

2014-02-27 Thread git
commit e75c56ad6a21ba8975b4143eba47c3e7ddd55195 Author: sin s...@2f30.org Date: Thu Feb 27 14:30:04 2014 + Update manpages - these tools are in ubase now diff --git a/id.1 b/id.1 index 967022c..797f592 100644 --- a/id.1 +++ b/id.1 @@ -1,4 +1,4 @@ -.TH ID 1 sbase\-VERSION +.TH ID 1

[hackers] [ubase] Simply use eprintf() instead of enprintf() || sin

2014-02-27 Thread git
commit 634e77a1a54de28c94ab9f8d763b90e5eaef3a79 Author: sin s...@2f30.org Date: Thu Feb 27 14:57:22 2014 + Simply use eprintf() instead of enprintf() diff --git a/su.c b/su.c index aa7f8af..16d876f 100644 --- a/su.c +++ b/su.c @@ -58,16 +58,16 @@ main(int argc, char **argv

[hackers] [ubase] Fix some more instances of enprintf(EXIT_FAILURE, ...); || sin

2014-02-27 Thread git
commit d0dc4dc2b7cdd3cabd339342d13fd994bdba2d6a Author: sin s...@2f30.org Date: Thu Feb 27 15:08:17 2014 + Fix some more instances of enprintf(EXIT_FAILURE, ...); diff --git a/lsmod.c b/lsmod.c index 5cfd3f0..8f625b0 100644 --- a/lsmod.c +++ b/lsmod.c @@ -38,7 +38,7 @@ main(int argc

[hackers] [surf] fix some indentation in config.def.h || Markus Teich

2014-02-28 Thread git
commit ea9d60c5c0cb5a5c021dd106f3636f83e1452d08 Author: Markus Teich markus.te...@stusta.mhn.de Date: Tue Feb 25 16:36:05 2014 +0100 fix some indentation in config.def.h Signed-off-by: Christoph Lohmann 2...@r-36.net diff --git a/config.def.h b/config.def.h index 5c966e0..80a0feb

[hackers] [st] Style matters. || Christoph Lohmann

2014-03-01 Thread git
commit d2ec39f0ef4b9d7f291aeba548a56144fce8a42f Author: Christoph Lohmann 2...@r-36.net Date: Sat Mar 1 09:22:57 2014 +0100 Style matters. diff --git a/st.c b/st.c index cad61bf..9371b62 100644 --- a/st.c +++ b/st.c @@ -2801,7 +2801,8 @@ xhints(void) { sizeh-min_height

[hackers] [sbase] We should not require both files to be present for cmp(1) || sin

2014-03-04 Thread git
commit c28e2a39ecf560291a68db3d506a5d2177c7a80d Author: sin s...@2f30.org Date: Tue Mar 4 10:33:51 2014 + We should not require both files to be present for cmp(1) If the second file is not present, read from standard input. diff --git a/cmp.c b/cmp.c index 6bc97cc..9c0b316

[hackers] [9base] Simplify preprocessor conditions to enable building on musl-libc || sin

2014-03-07 Thread git
here that works on uClibc, glibc and musl-libc by just using syscall(2) and getdents(2). To build 9base, you will need the appropriate kernel headers in place. diff --git a/lib9/_p9dir.c b/lib9/_p9dir.c index 706130c..b49cd4d 100644 --- a/lib9/_p9dir.c +++ b/lib9/_p9dir.c @@ -61,7

[hackers] [sbase] kill: argc 2 should be argc 1 || Hiltjo Posthuma

2014-03-07 Thread git
commit f34e1ae1d0b2bb95290425a3e0292937b47e4de5 Author: Hiltjo Posthuma hil...@codemadness.org Date: Fri Mar 7 19:35:43 2014 +0100 kill: argc 2 should be argc 1 Signed-off-by: Hiltjo Posthuma hil...@codemadness.org diff --git a/kill.c b/kill.c index 3a65de9..70e95f9 100644

[hackers] [ubase] Add weprintf() || sin

2014-03-12 Thread git
commit 6df1301594433963840b29d6ae42fb6de4b056c8 Author: sin s...@2f30.org Date: Wed Mar 12 16:18:29 2014 +0200 Add weprintf() diff --git a/util.h b/util.h index c478579..76feaa9 100644 --- a/util.h +++ b/util.h @@ -19,3 +19,4 @@ size_t strlcat(char *, const char *, size_t); #undef strlcpy

[hackers] [ubase] Don't prefix messages with the tool name by default || sin

2014-03-12 Thread git
commit 552a5ae4b502c373ae516e16a8a756e659e7c7bb Author: sin s...@2f30.org Date: Wed Mar 12 16:29:11 2014 +0200 Don't prefix messages with the tool name by default diff --git a/util/eprintf.c b/util/eprintf.c index bd4e090..f3cac7b 100644 --- a/util/eprintf.c +++ b/util/eprintf.c @@ -50,7

[hackers] [ubase] Update umount usage || sin

2014-03-12 Thread git
commit 6506e85d1339ea0c6ed97dfbc88ac0d064f534e0 Author: sin s...@2f30.org Date: Wed Mar 12 16:28:56 2014 +0200 Update umount usage diff --git a/umount.c b/umount.c index 514063d..2b0c32e 100644 --- a/umount.c +++ b/umount.c @@ -8,7 +8,9 @@ static void usage(void) { - eprintf(usage

[hackers] [ubase] umount(8) should look in /etc/mtab || sin

2014-03-12 Thread git
commit bea831d2e6356833dc8990d97db974526a007018 Author: sin s...@2f30.org Date: Wed Mar 12 16:33:04 2014 +0200 umount(8) should look in /etc/mtab diff --git a/umount.c b/umount.c index 2b0c32e..d04410a 100644 --- a/umount.c +++ b/umount.c @@ -43,9 +43,9 @@ main(int argc, char *argv

[hackers] [ubase] Don't umount proc in umount -a || sin

2014-03-12 Thread git
commit 14716af4723e94913dfaf4516b975db1a764b5e8 Author: sin s...@2f30.org Date: Wed Mar 12 16:35:20 2014 +0200 Don't umount proc in umount -a diff --git a/umount.c b/umount.c index d04410a..46143c1 100644 --- a/umount.c +++ b/umount.c @@ -2,6 +2,7 @@ #include mntent.h #include stdio.h

[hackers] [sbase] Rename mc(1) to cols(1) || sin

2014-03-12 Thread git
commit bc0de5e7e541a6fc45774ac3a03248c2a533f9cf Author: sin s...@2f39.org Date: Wed Mar 12 16:43:45 2014 +0200 Rename mc(1) to cols(1) There is an obvious name collision with the popular file manager midnight commander. diff --git a/Makefile b/Makefile index 9aa8723..ceed44f

[hackers] [ubase] umount -a should unmount in the reverse order || sin

2014-03-15 Thread git
commit 6ef8c718e15fa2e6c90cf2a6266850fa1c46727e Author: sin s...@2f30.org Date: Sat Mar 15 18:44:16 2014 + umount -a should unmount in the reverse order diff --git a/umount.c b/umount.c index c7d4882..efe7d84 100644 --- a/umount.c +++ b/umount.c @@ -61,6 +61,8 @@ umountall(int flags

[hackers] [ubase] Factor out umount -a into a separate function || sin

2014-03-15 Thread git
commit 98f7fcad946431881edf44c2415e96956b8ecd75 Author: sin s...@2f30.org Date: Sat Mar 15 18:37:16 2014 + Factor out umount -a into a separate function diff --git a/umount.c b/umount.c index c413a0e..c7d4882 100644 --- a/umount.c +++ b/umount.c @@ -6,6 +6,8 @@ #include sys/mount.h

[hackers] [ubase] Print mnt_dir as well if umount2 fails. || sin

2014-03-15 Thread git
commit e5b9f696267cc68be69757d8a04590e2abdb8719 Author: sin s...@2f30.org Date: Sat Mar 15 18:10:01 2014 + Print mnt_dir as well if umount2 fails. diff --git a/umount.c b/umount.c index 46143c1..c413a0e 100644 --- a/umount.c +++ b/umount.c @@ -51,7 +51,7 @@ main(int argc, char *argv

[hackers] [ubase] Check strdup() for failure || sin

2014-03-15 Thread git
commit 861e16ac1763786dda1ce459acd33e4d9c5d6e99 Author: sin s...@2f30.org Date: Sat Mar 15 18:48:01 2014 + Check strdup() for failure diff --git a/umount.c b/umount.c index efe7d84..429ada1 100644 --- a/umount.c +++ b/umount.c @@ -74,6 +74,8 @@ umountall(int flags

[hackers] [ubase] mount: match mountpoint error message with util-linux || Hiltjo Posthuma

2014-03-15 Thread git
commit a056e2aa5444c2a2d07c25f94ce17af5e3340b4c Author: Hiltjo Posthuma hil...@codemadness.org Date: Sat Mar 15 19:45:56 2014 +0100 mount: match mountpoint error message with util-linux Signed-off-by: Hiltjo Posthuma hil...@codemadness.org diff --git a/mount.c b/mount.c index

[hackers] [ubase] mount: show devicename in error output for clarity || Hiltjo Posthuma

2014-03-15 Thread git
commit 9af24d8a29518639aa03cdafbeb774f60531271b Author: Hiltjo Posthuma hil...@codemadness.org Date: Sat Mar 15 19:28:23 2014 +0100 mount: show devicename in error output for clarity Signed-off-by: Hiltjo Posthuma hil...@codemadness.org diff --git a/mount.c b/mount.c index 4e14bde

[hackers] [ubase] mount: use mount error status code when mount failed || Hiltjo Posthuma

2014-03-15 Thread git
...@codemadness.org diff --git a/mount.c b/mount.c index eda60ee..0f6bdc5 100644 --- a/mount.c +++ b/mount.c @@ -155,8 +155,10 @@ main(int argc, char *argv[]) eprintf(can't find %s in /etc/fstab , target); mountsingle: - if(mount(source, target, types, flags, data) 0

[hackers] [ubase] mount: only use source if not set || Hiltjo Posthuma

2014-03-15 Thread git
commit 55fa13016cc2ecc38fca402efeb980ff23013fcb Author: Hiltjo Posthuma hil...@codemadness.org Date: Sat Mar 15 21:45:09 2014 +0100 mount: only use source if not set Signed-off-by: Hiltjo Posthuma hil...@codemadness.org diff --git a/mount.c b/mount.c index 605fca9..22abdf5 100644

[hackers] [ubase] Implement -o for killall5 || sin

2014-03-17 Thread git
commit 4fb9eabf8ef32728a4af0552a92c01e8c430c48b Author: sin s...@2f30.org Date: Mon Mar 17 14:26:19 2014 +0200 Implement -o for killall5 diff --git a/killall5.c b/killall5.c index 7f91e06..8862210 100644 --- a/killall5.c +++ b/killall5.c @@ -4,7 +4,7 @@ #include signal.h #include stdio.h

[hackers] [ubase] Fix indentation for mount(8) || sin

2014-03-17 Thread git
commit e91b3d9e716117f39162355d448d5e1dc4909952 Author: sin s...@2f30.org Date: Mon Mar 17 14:46:35 2014 +0200 Fix indentation for mount(8) No functional change intended. diff --git a/mount.c b/mount.c index 22abdf5..6e2a6ec 100644 --- a/mount.c +++ b/mount.c @@ -129,29 +129,29

[hackers] [ubase] Remove implemented items from TODO || sin

2014-03-17 Thread git
commit 7cd9280b112b908b17748b2ca20b056e0810eee5 Author: sin s...@2f30.org Date: Mon Mar 17 14:55:27 2014 +0200 Remove implemented items from TODO diff --git a/TODO b/TODO index 64d6a71..f48736b 100644 --- a/TODO +++ b/TODO @@ -6,8 +6,6 @@ Tools * swaplabel(8) * last(1) * losetup(8

[hackers] [ubase] Don't list dummy rootfs by default || sin

2014-03-18 Thread git
commit ee88227c33bae40f5488c1d61969eed1e668186b Author: sin s...@2f30.org Date: Tue Mar 18 16:19:56 2014 +0200 Don't list dummy rootfs by default diff --git a/df.c b/df.c index dc3411f..299c297 100644 --- a/df.c +++ b/df.c @@ -2,6 +2,7 @@ #include mntent.h #include stdio.h #include

[hackers] [ubase] Don't print errors for already mounted filesystems || sin

2014-03-18 Thread git
commit 6505db4709b30a2ab85e12124e73238ac6ce07a6 Author: sin s...@2f30.org Date: Tue Mar 18 16:38:31 2014 +0200 Don't print errors for already mounted filesystems diff --git a/mount.c b/mount.c index 6e2a6ec..ea33125 100644 --- a/mount.c +++ b/mount.c @@ -66,6 +66,29 @@ parseopts(char

[hackers] [ubase] mount: mounted(): dont exit on non-fatal things || Hiltjo Posthuma

2014-03-22 Thread git
. Signed-off-by: Hiltjo Posthuma hil...@codemadness.org diff --git a/mount.c b/mount.c index df82109..6afa438 100644 --- a/mount.c +++ b/mount.c @@ -73,17 +73,21 @@ mounted(const char *dir) struct mntent *me; struct stat st1, st2; - if (stat(dir, st1) 0

[hackers] [sbase] crypt: error status code if an error occured in a file series || Hiltjo Posthuma

2014-03-23 Thread git
commit 18b6e4016108182834d08f54c15daad3a459da9f Author: Hiltjo Posthuma hil...@codemadness.org Date: Sun Mar 23 12:30:34 2014 +0100 crypt: error status code if an error occured in a file series Signed-off-by: Hiltjo Posthuma hil...@codemadness.org diff --git a/util/crypt.c b/util

[hackers] [sbase] crypt: dont error out if a file in a series fails || Hiltjo Posthuma

2014-03-23 Thread git
commit 7727530b534581f64ff00d1bc41b3198103e5e11 Author: Hiltjo Posthuma hil...@codemadness.org Date: Sun Mar 23 12:23:56 2014 +0100 crypt: dont error out if a file in a series fails Signed-off-by: Hiltjo Posthuma hil...@codemadness.org diff --git a/util/crypt.c b/util/crypt.c

[hackers] [sbase] crypt: free line and tiny cleanup || Hiltjo Posthuma

2014-03-23 Thread git
commit dd7eb6386917b64f331c94fab662829da56fab10 Author: Hiltjo Posthuma hil...@codemadness.org Date: Sun Mar 23 13:45:52 2014 +0100 crypt: free line and tiny cleanup Signed-off-by: Hiltjo Posthuma hil...@codemadness.org diff --git a/util/crypt.c b/util/crypt.c index 7048659

[hackers] [sbase] checksum tools: implement -c || Hiltjo Posthuma

2014-03-23 Thread git
commit 04f32f4d9aae63f80f5aa9b771190f47593bf62e Author: Hiltjo Posthuma hil...@codemadness.org Date: Sun Mar 23 12:18:38 2014 +0100 checksum tools: implement -c Signed-off-by: Hiltjo Posthuma hil...@codemadness.org diff --git a/crypt.h b/crypt.h index 7242cdf..1855d37 100644

[hackers] [sbase] Use strlcpy() || sin

2014-03-23 Thread git
commit a6ef67cd3d66504b2ae563d080140a425b702ab1 Author: sin s...@2f30.org Date: Sun Mar 23 18:33:06 2014 + Use strlcpy() diff --git a/split.c b/split.c index ae6f3a7..b63a988 100644 --- a/split.c +++ b/split.c @@ -75,7 +75,7 @@ main(int argc, char **argv) plen = strlen(prefix

[hackers] [sbase] Remove WARNING: prefix from messages || sin

2014-03-23 Thread git
commit 897efd5f13ebecf8d29a9c51df1ec87e6e9d2863 Author: sin s...@2f30.org Date: Sun Mar 23 18:58:43 2014 + Remove WARNING: prefix from messages diff --git a/util/crypt.c b/util/crypt.c index 2bca8fc..cd24e93 100644 --- a/util/crypt.c +++ b/util/crypt.c @@ -79,15 +79,15 @@ cryptcheck

[hackers] [ubase] Print system login processes correctly when doing who -l || sin

2014-03-25 Thread git
commit 07592f31be3927dd1e9e6a4d82e4049c52cde48c Author: sin s...@2f30.org Date: Tue Mar 25 12:38:47 2014 + Print system login processes correctly when doing who -l Fix style as well. diff --git a/who.c b/who.c index f05cf54..c46a6ac 100644 --- a/who.c +++ b/who.c @@ -49,9

[hackers] [st] new utf decoder || Damian Okrasa

2014-04-01 Thread git
sequences, if necessary, requires trivial modification of UTF_SIZ constant and utfbyte, utfmask, utfmin, utfmax arrays. diff --git a/st.c b/st.c index 69b2491..e20a1e0 100644 --- a/st.c +++ b/st.c @@ -55,6 +55,7 @@ char *argv0; #define XEMBED_FOCUS_OUT 5 /* Arbitrary sizes */ +#define

  1   2   3   4   5   6   7   8   9   10   >