ubase, branch HEADsuckless linux base utils
a570a80ed1606bed43118cb148fc83c3ac22b5c12024-03-07T21:35:31Z2024-03-07T21:35:31Zsu: Fix running it without arguments The commit 8f5a0c3 introduced a regression and the logic to control the number of arguments was broken after it, giving an error when su was executed without parameters.Roberto E. Vargas Caballerok0ga@shike2.comcommit a570a80ed1606bed43118cb148fc83c3ac22b5c1
parent 4cd0b143801b1135abd2b7012cfed020710a4e68
Author: Roberto E. Vargas Caballero <k0ga@shike2.com>
Date: Thu, 7 Mar 2024 22:35:31 +0100
su: Fix running it without arguments
The commit 8f5a0c3 introduced a regression and the logic
to control the number of arguments was broken after it,
giving an error when su was executed without parameters.
4cd0b143801b1135abd2b7012cfed020710a4e682024-02-13T02:03:12Z2024-03-06T09:12:49Zsu: don't set $PATHneeshyneeshy@tfwno.gfcommit 4cd0b143801b1135abd2b7012cfed020710a4e68
parent e9bcdcc341d74f0abaa171703ac031b55e9020c0
Author: neeshy <neeshy@tfwno.gf>
Date: Mon, 12 Feb 2024 21:03:12 -0500
su: don't set $PATH
Just /bin is too restrictive, and login shells set the path anyway via
the default profile. Also, carrying the path over for non-login shells
conforms to the behavior of util-linux's su.
e9bcdcc341d74f0abaa171703ac031b55e9020c02024-02-13T02:41:02Z2024-03-06T09:11:29Zsu: check $SHELL for validityneeshyneeshy@tfwno.gfcommit e9bcdcc341d74f0abaa171703ac031b55e9020c0
parent cf9e26d7fa2d13ede8ce2830819e311fc0dd83b9
Author: neeshy <neeshy@tfwno.gf>
Date: Mon, 12 Feb 2024 21:41:02 -0500
su: check $SHELL for validity
If $SHELL isn't defined in the environment, the call to execve will
fail when -p is specified. Fallback to the user's login shell if $SHELL
is invalid.
cf9e26d7fa2d13ede8ce2830819e311fc0dd83b92024-02-12T21:25:50Z2024-03-06T09:11:23Zsu: fix setting argv0neeshyneeshy@tfwno.gfcommit cf9e26d7fa2d13ede8ce2830819e311fc0dd83b9
parent 8f5a0c32362dc447ab066f9c3ad7802153a6bb40
Author: neeshy <neeshy@tfwno.gf>
Date: Mon, 12 Feb 2024 16:25:50 -0500
su: fix setting argv0
argv0 was being set to the user's login shell even when -p was
specified. Only populate newargv once the shell is properly determined.
8f5a0c32362dc447ab066f9c3ad7802153a6bb402024-02-13T02:26:35Z2024-03-06T09:11:07Zsu: simplify logicneeshyneeshy@tfwno.gfcommit 8f5a0c32362dc447ab066f9c3ad7802153a6bb40
parent a015607af0075badc0cd90523c43f391daa0572d
Author: neeshy <neeshy@tfwno.gf>
Date: Mon, 12 Feb 2024 21:26:35 -0500
su: simplify logic
Inline dologin, and simplify common code
a015607af0075badc0cd90523c43f391daa0572d2023-09-22T08:06:21Z2023-09-26T07:22:32ZExplicitly include sys/sysmacros.h for makedev etcMarkus Rudywebmaster@burgerdev.decommit a015607af0075badc0cd90523c43f391daa0572d
parent 3c88778c6c85d97fb63c41c05304519e0484b07c
Author: Markus Rudy <webmaster@burgerdev.de>
Date: Fri, 22 Sep 2023 10:06:21 +0200
Explicitly include sys/sysmacros.h for makedev etc
This header used to be included by sys/types.h in glibc, and musl
adopted the behaviour. However, this dependency was never desired, so
glibc deprecated it in 2016 and finally removed it in 2019, and so did
musl. Explicitly including the header should be a no-op on older libc
versions and fixes the build on newer versions.
https://sourceware.org/bugzilla/show_bug.cgi?id=19239
https://git.musl-libc.org/cgit/musl/commit/?id=f552c79
3c88778c6c85d97fb63c41c05304519e0484b07c2019-03-13T03:38:26Z2019-03-14T11:42:59Zumount: Fix use of uninitialized variableMichael Forneymforney@mforney.orgcommit 3c88778c6c85d97fb63c41c05304519e0484b07c
parent 140efda3a263b9e6d922633c418fa9846d35731d
Author: Michael Forney <mforney@mforney.org>
Date: Tue, 12 Mar 2019 20:38:26 -0700
umount: Fix use of uninitialized variable
140efda3a263b9e6d922633c418fa9846d35731d2018-09-25T18:54:25Z2019-01-30T11:58:55Zpasswd: fix crashes for unencrypted passwords starting with 'x'.Mario Rugieromrugiero@gmail.comcommit 140efda3a263b9e6d922633c418fa9846d35731d
parent 4f1b54dd92aa858432f648fc886700f7b369ed84
Author: Mario Rugiero <mrugiero@gmail.com>
Date: Tue, 25 Sep 2018 15:54:25 -0300
passwd: fix crashes for unencrypted passwords starting with 'x'.
When deciding where the previous hash should come from, is is
assumed that 'x' started strings all mean to look in shadow.
This is probably harmless in practice, since modern Linux still
use only hashes instead of raw passwords.
However, this is more robust, and more importantly, it is more
consistent with the previous check, which explicitly tests for
the string to be "x".
4f1b54dd92aa858432f648fc886700f7b369ed842018-09-29T18:28:37Z2019-01-30T11:57:49Zpasswd: prevent segfault when running as rootJohn Reganjohn@jrjrtech.comcommit 4f1b54dd92aa858432f648fc886700f7b369ed84
parent 7ffe3cfacce716b08139c8713f37fd38b4bce6f7
Author: John Regan <john@jrjrtech.com>
Date: Sat, 29 Sep 2018 14:28:37 -0400
passwd: prevent segfault when running as root
When running as root, passwd attempts to compare the new password to
the old password, without having grabbed the old passwd.
This checks if the previous password hash was grabbed before comparing
it against the new password hash.
7ffe3cfacce716b08139c8713f37fd38b4bce6f72018-12-28T12:49:54Z2019-01-30T11:25:33Zuptime: Fix user/s printing (grammar error) when users == 0.parazydparazyd@dyne.orgcommit 7ffe3cfacce716b08139c8713f37fd38b4bce6f7
parent 604b66ae8b4005d89eed1cbab45a64cb57e75390
Author: parazyd <parazyd@dyne.org>
Date: Fri, 28 Dec 2018 07:49:54 -0500
uptime: Fix user/s printing (grammar error) when users == 0.
Signed-off-by: parazyd <parazyd@dyne.org>
604b66ae8b4005d89eed1cbab45a64cb57e753902018-07-02T13:03:49Z2018-07-02T13:03:57ZAdd blkdiscard(8)sinsin@2f30.orgcommit 604b66ae8b4005d89eed1cbab45a64cb57e75390
parent 4f5837147a14e0fb8ec1a2a46a9c4045bdb75696
Author: sin <sin@2f30.org>
Date: Mon, 2 Jul 2018 14:03:49 +0100
Add blkdiscard(8)
4f5837147a14e0fb8ec1a2a46a9c4045bdb756962018-04-07T02:33:30Z2018-06-30T16:38:07Zmount: don't call realpath on root targetIoan-Adrian Ratiuadi@adirat.comcommit 4f5837147a14e0fb8ec1a2a46a9c4045bdb75696
parent 11d2d1faaf9cd0e2b6796c17390137dedcdc90bb
Author: Ioan-Adrian Ratiu <adi@adirat.com>
Date: Sat, 7 Apr 2018 05:33:30 +0300
mount: don't call realpath on root target
Musl libc realpath implementation calls readlink on a procfs
path it computes via __procfdname (code at [1] & [2]).
This is problematic if ubase mount is used in a PID 1 because procfs
is not mounted and the kernel passes the rootfs mounted read-only, so
the first step is to read-write remount the rootfs, which can't be
done because procfs is not mounted. Thus we are in a dependency cycle:
procfs can't be mounted because the root is read-only and so on.
To break this cycle, don't call readlink on "/" (it doesn't really make
sense anyway) so the rootfs can be remounted read-write, after which
proc itself can be mounted and the rest of mount calls will succeed
so systems running ubase + musl can succesfully boot into userspace.
[1] https://git.musl-libc.org/cgit/musl/tree/src/misc/realpath.c?h=v1.1.19
[2] https://git.musl-libc.org/cgit/musl/tree/src/internal/procfdname.c?h=v1.1.19
Signed-off-by: Ioan-Adrian Ratiu <adi@adirat.com>
11d2d1faaf9cd0e2b6796c17390137dedcdc90bb2018-06-30T16:31:53Z2018-06-30T16:31:53ZFix segfault in killall5 without -osinsin@2f30.orgcommit 11d2d1faaf9cd0e2b6796c17390137dedcdc90bb
parent 2d58716c23f946a84a941579ede6508f0b133361
Author: sin <sin@2f30.org>
Date: Sat, 30 Jun 2018 17:31:53 +0100
Fix segfault in killall5 without -o
Original patch by Platon Ryzhikov <ihummer63@yandex.ru>
2d58716c23f946a84a941579ede6508f0b1333612018-06-11T20:45:56Z2018-06-30T16:27:45Zps: fix argv0 position in usage lineMattias Andréemaandree@kth.secommit 2d58716c23f946a84a941579ede6508f0b133361
parent 55795531f03ccb5a41cf80fd564b862c103252cc
Author: Mattias Andrée <maandree@kth.se>
Date: Mon, 11 Jun 2018 22:45:56 +0200
ps: fix argv0 position in usage line
Signed-off-by: Mattias Andrée <maandree@kth.se>
55795531f03ccb5a41cf80fd564b862c103252cc2017-10-10T15:27:27Z2017-10-10T15:28:15Zdd: Use sigaction(2) to obviate select(2)Eric Pruitteric.pruitt@gmail.comcommit 55795531f03ccb5a41cf80fd564b862c103252cc
parent fae9ca81a2eaf3534299b7ca3033b1e6605f9ab2
Author: Eric Pruitt <eric.pruitt@gmail.com>
Date: Tue, 10 Oct 2017 16:27:27 +0100
dd: Use sigaction(2) to obviate select(2)
By setting the SIGINT handler with sigaction(2), automatic retries of
the splice(2) syscall can be disabled by not setting SA_RESTART. This
makes it possible to use Ctrl+C even if the "if" operand refers to the
controlling terminal. The SIGINT message has also been moved outside
the signal handler since fprintf(3) is not an async-signal-safe
function.
fae9ca81a2eaf3534299b7ca3033b1e6605f9ab22016-10-24T03:59:51Z2017-08-22T11:36:56Zpasswd: Use a random salt when encrypting passwordsMichael Forneymforney@mforney.orgcommit fae9ca81a2eaf3534299b7ca3033b1e6605f9ab2
parent 3a5939e81018a05d710d0f3c8cea8794dd8a1637
Author: Michael Forney <mforney@mforney.org>
Date: Sun, 23 Oct 2016 20:59:51 -0700
passwd: Use a random salt when encrypting passwords
3a5939e81018a05d710d0f3c8cea8794dd8a16372016-10-23T21:00:29Z2017-08-22T11:36:28Zmount: Don't pass {,no}auto to kernelMichael Forneymforney@mforney.orgcommit 3a5939e81018a05d710d0f3c8cea8794dd8a1637
parent e3dacbb542daeda7797855b01b3afbf7c433ad5f
Author: Michael Forney <mforney@mforney.org>
Date: Sun, 23 Oct 2016 14:00:29 -0700
mount: Don't pass {,no}auto to kernel
e3dacbb542daeda7797855b01b3afbf7c433ad5f2016-09-25T10:24:17Z2016-09-26T08:57:54Zrespawn: reopen the fifo at end of line, and use read-onlyMattias Andréemaandree@kth.secommit e3dacbb542daeda7797855b01b3afbf7c433ad5f
parent fa7ae96e0fc8963b0fdd179f0555b66c424555f4
Author: Mattias Andrée <maandree@kth.se>
Date: Sun, 25 Sep 2016 12:24:17 +0200
respawn: reopen the fifo at end of line, and use read-only
Signed-off-by: Mattias Andrée <maandree@kth.se>
fa7ae96e0fc8963b0fdd179f0555b66c424555f42016-04-24T16:46:53Z2016-04-24T16:47:28Zpasswd: fix function def stylesinsin@2f30.orgcommit fa7ae96e0fc8963b0fdd179f0555b66c424555f4
parent 5b16e8a4eb5075155ff87ec5595abeb705a6aab4
Author: sin <sin@2f30.org>
Date: Sun, 24 Apr 2016 17:46:53 +0100
passwd: fix function def style
5b16e8a4eb5075155ff87ec5595abeb705a6aab42016-03-26T14:46:29Z2016-04-20T22:08:51Zpwdx: fix off-by-one bugMattias Andréemaandree@kth.secommit 5b16e8a4eb5075155ff87ec5595abeb705a6aab4
parent f26a1449bfa18a6fbbe263f084df4e490772e9d3
Author: Mattias Andrée <maandree@kth.se>
Date: Sat, 26 Mar 2016 15:46:29 +0100
pwdx: fix off-by-one bug
Signed-off-by: Mattias Andrée <maandree@kth.se>
f26a1449bfa18a6fbbe263f084df4e490772e9d32016-03-26T11:58:37Z2016-04-20T22:08:51ZAdd pwdx(1)Mattias Andréemaandree@kth.secommit f26a1449bfa18a6fbbe263f084df4e490772e9d3
parent 28795cffe22ee6a645e4763f6b9bd0e422dddb2a
Author: Mattias Andrée <maandree@kth.se>
Date: Sat, 26 Mar 2016 12:58:37 +0100
Add pwdx(1)
Signed-off-by: Mattias Andrée <maandree@kth.se>
28795cffe22ee6a645e4763f6b9bd0e422dddb2a2016-03-26T10:37:33Z2016-03-26T19:08:10Zfsfreeze: make it clear the either -f or -u must be specified, not optionalMattias Andréemaandree@kth.secommit 28795cffe22ee6a645e4763f6b9bd0e422dddb2a
parent 48728b25945a864216a4e3a96a4d043363007de8
Author: Mattias Andrée <maandree@kth.se>
Date: Sat, 26 Mar 2016 11:37:33 +0100
fsfreeze: make it clear the either -f or -u must be specified, not optional
Signed-off-by: Mattias Andrée <maandree@kth.se>
48728b25945a864216a4e3a96a4d043363007de82016-03-26T19:06:18Z2016-03-26T19:08:10Znologin: Sort includessinsin@2f30.orgcommit 48728b25945a864216a4e3a96a4d043363007de8
parent 6e7386edb34f5acdd5dbbee68e85b16415a3b4aa
Author: sin <sin@2f30.org>
Date: Sat, 26 Mar 2016 19:06:18 +0000
nologin: Sort includes
6e7386edb34f5acdd5dbbee68e85b16415a3b4aa2016-03-26T10:30:56Z2016-03-26T19:08:10ZAdd nologin(8)Mattias Andréemaandree@kth.secommit 6e7386edb34f5acdd5dbbee68e85b16415a3b4aa
parent e0dc3f9546b3cd839aef8e58376c6295679a5ed5
Author: Mattias Andrée <maandree@kth.se>
Date: Sat, 26 Mar 2016 11:30:56 +0100
Add nologin(8)
Signed-off-by: Mattias Andrée <maandree@kth.se>
e0dc3f9546b3cd839aef8e58376c6295679a5ed52016-03-16T09:23:50Z2016-03-16T10:17:51Zdd: implement conv=notrunc supportEivind Uggedaleivind@uggedal.comcommit e0dc3f9546b3cd839aef8e58376c6295679a5ed5
parent 596663c1b1f140c10ba1facede783201d6a876a7
Author: Eivind Uggedal <eivind@uggedal.com>
Date: Wed, 16 Mar 2016 09:23:50 +0000
dd: implement conv=notrunc support
596663c1b1f140c10ba1facede783201d6a876a72016-03-15T21:06:28Z2016-03-16T10:17:51Zdd: truncate file when using seek=Eivind Uggedaleivind@uggedal.comcommit 596663c1b1f140c10ba1facede783201d6a876a7
parent e358d74a805829dddf987ff62f42c7631df48e88
Author: Eivind Uggedal <eivind@uggedal.com>
Date: Tue, 15 Mar 2016 21:06:28 +0000
dd: truncate file when using seek=
e358d74a805829dddf987ff62f42c7631df48e882016-03-15T20:27:49Z2016-03-16T10:17:51Zdd: don't let failure to change pipe size affect exit codeEivind Uggedaleivind@uggedal.comcommit e358d74a805829dddf987ff62f42c7631df48e88
parent c64b5b04c7993765ab67207e86db92a48d7087f4
Author: Eivind Uggedal <eivind@uggedal.com>
Date: Tue, 15 Mar 2016 20:27:49 +0000
dd: don't let failure to change pipe size affect exit code
c64b5b04c7993765ab67207e86db92a48d7087f42016-03-15T20:16:05Z2016-03-16T10:17:51Zdd: allow count=0Eivind Uggedaleivind@uggedal.comcommit c64b5b04c7993765ab67207e86db92a48d7087f4
parent e5d88b0f30feb2f0374c2e09ecd2685ba1f4e717
Author: Eivind Uggedal <eivind@uggedal.com>
Date: Tue, 15 Mar 2016 20:16:05 +0000
dd: allow count=0
e5d88b0f30feb2f0374c2e09ecd2685ba1f4e7172016-03-15T16:03:14Z2016-03-16T10:17:51Zdd: remove if= noatime optimizationEivind Uggedaleivind@uggedal.comcommit e5d88b0f30feb2f0374c2e09ecd2685ba1f4e717
parent 05a69d9d0decf9e8d5037bd8d20bb20c235b2017
Author: Eivind Uggedal <eivind@uggedal.com>
Date: Tue, 15 Mar 2016 16:03:14 +0000
dd: remove if= noatime optimization
05a69d9d0decf9e8d5037bd8d20bb20c235b20172016-03-15T16:02:33Z2016-03-16T10:17:51Zdd: always create of= even if seek= is usedEivind Uggedaleivind@uggedal.comcommit 05a69d9d0decf9e8d5037bd8d20bb20c235b2017
parent 0e7ab0ca9e1769d9c5e004378f14c9a7daf4e343
Author: Eivind Uggedal <eivind@uggedal.com>
Date: Tue, 15 Mar 2016 16:02:33 +0000
dd: always create of= even if seek= is used
0e7ab0ca9e1769d9c5e004378f14c9a7daf4e3432016-02-22T14:03:36Z2016-02-22T14:36:21Zarg.h: fixed argv checks orderLucas Gabriel Vuottol.vuotto92@gmail.comcommit 0e7ab0ca9e1769d9c5e004378f14c9a7daf4e343
parent ac4fcddd50aba673e38563a69b7a8e5a20ef28e8
Author: Lucas Gabriel Vuotto <l.vuotto92@gmail.com>
Date: Mon, 22 Feb 2016 11:03:36 -0300
arg.h: fixed argv checks order
This prevents accessing to a potentially out-of-bounds memory section.
Signed-off-by: Lucas Gabriel Vuotto <l.vuotto92@gmail.com>
ac4fcddd50aba673e38563a69b7a8e5a20ef28e82016-02-16T15:19:25Z2016-02-16T15:20:10Zdf: Don't scream if statvfs() failssinsin@2f30.orgcommit ac4fcddd50aba673e38563a69b7a8e5a20ef28e8
parent 4c33cf2a98312a2947c365f7cfbff29615efe2a5
Author: sin <sin@2f30.org>
Date: Tue, 16 Feb 2016 15:19:25 +0000
df: Don't scream if statvfs() fails
4c33cf2a98312a2947c365f7cfbff29615efe2a52016-02-11T14:25:23Z2016-02-11T14:36:54ZUse estrlcat where possibleFRIGNdev@frign.decommit 4c33cf2a98312a2947c365f7cfbff29615efe2a5
parent 4dbd00fc948efef8e8bbe4d52189e98701227948
Author: FRIGN <dev@frign.de>
Date: Thu, 11 Feb 2016 15:25:23 +0100
Use estrlcat where possible
4dbd00fc948efef8e8bbe4d52189e987012279482016-01-28T21:53:36Z2016-02-11T10:16:41Zmount: fix mount helper fs option handlingBrad Bardenb+suckless@13os.netcommit 4dbd00fc948efef8e8bbe4d52189e98701227948
parent 4ece17d605c3a6c508639238b30f8f3f7dddb2f4
Author: Brad Barden <b+suckless@13os.net>
Date: Thu, 28 Jan 2016 15:53:36 -0600
mount: fix mount helper fs option handling
If a mount helper is used, only argopts (given on commandline) are
passed to the helper via -o parameter. Option strings from fstab are
ignored.
This patch replaces global argopts pointer with a character array
fsopts. A maximum length for filesytem options is #defined (used by
fsopts and data), and argument/mntent options are length-checked to fit.
A filesystem with too long an option string will print an error, cause
mount to exit with an error status, and not attempt to mount the
filesystem. This obviates the need for overflow checking of data in
parseopts(), though it hasn't been removed.
4ece17d605c3a6c508639238b30f8f3f7dddb2f42016-01-06T18:00:19Z2016-02-11T10:16:41ZLICENSE: update year and bump to topHiltjo Posthumahiltjo@codemadness.orgcommit 4ece17d605c3a6c508639238b30f8f3f7dddb2f4
parent 3af0bbd564f42d9b70e0f854a6e0ab8add1e7aee
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date: Wed, 6 Jan 2016 19:00:19 +0100
LICENSE: update year and bump to top
3af0bbd564f42d9b70e0f854a6e0ab8add1e7aee2016-01-01T10:05:06Z2016-01-04T18:07:44Zfix several problems in ddizaberaizaberina@gmail.comcommit 3af0bbd564f42d9b70e0f854a6e0ab8add1e7aee
parent 4c34f6b10033d573cb2d62ee2f9a6523f1cc30cb
Author: izabera <izaberina@gmail.com>
Date: Fri, 1 Jan 2016 11:05:06 +0100
fix several problems in dd
4c34f6b10033d573cb2d62ee2f9a6523f1cc30cb2016-01-01T10:32:13Z2016-01-01T12:20:11ZUpdate copyright yearssinsin@2f30.orgcommit 4c34f6b10033d573cb2d62ee2f9a6523f1cc30cb
parent a8f95b2f9a8e85193b8ebd53a7e4aeae12e02480
Author: sin <sin@2f30.org>
Date: Fri, 1 Jan 2016 10:32:13 +0000
Update copyright years
a8f95b2f9a8e85193b8ebd53a7e4aeae12e024802015-10-07T12:53:41Z2015-10-07T12:57:24ZUse SLIST instead of TAILQ for pidof(8)sinsin@2f30.orgcommit a8f95b2f9a8e85193b8ebd53a7e4aeae12e02480
parent d3efa66c82d2e371b5813487e2c3ad9ef3100e6f
Author: sin <sin@2f30.org>
Date: Wed, 7 Oct 2015 14:53:41 +0200
Use SLIST instead of TAILQ for pidof(8)
d3efa66c82d2e371b5813487e2c3ad9ef3100e6f2015-10-07T12:50:38Z2015-10-07T12:57:24ZUse SLIST instead of TAILQ for killall5(8)sinsin@2f30.orgcommit d3efa66c82d2e371b5813487e2c3ad9ef3100e6f
parent 3e7e1e96440dc0e0034eb5071a71de3bcb1e463a
Author: sin <sin@2f30.org>
Date: Wed, 7 Oct 2015 14:50:38 +0200
Use SLIST instead of TAILQ for killall5(8)
No need to teardown the list at the end.
3e7e1e96440dc0e0034eb5071a71de3bcb1e463a2015-09-12T20:52:33Z2015-09-14T09:15:55ZFix fallocate(1) manpageFRIGNdev@frign.decommit 3e7e1e96440dc0e0034eb5071a71de3bcb1e463a
parent e3b20bbda0a7a23141702b3250dc64f4fd2d8f87
Author: FRIGN <dev@frign.de>
Date: Sat, 12 Sep 2015 22:52:33 +0200
Fix fallocate(1) manpage
To be honest, I had a little misunderstanding of the fallocate(1)-
utility.
It turns out that it only adds preallocated space if the length
exceeds the size of an already existing file.
No truncation happens.
Thus, I fixed the wording accordingly.
e3b20bbda0a7a23141702b3250dc64f4fd2d8f872015-09-10T22:27:29Z2015-09-14T09:15:55ZRefactor fallocate(1)FRIGNdev@frign.decommit e3b20bbda0a7a23141702b3250dc64f4fd2d8f87
parent 90c75840894958edb000a1091e13d5dac6b86279
Author: FRIGN <dev@frign.de>
Date: Fri, 11 Sep 2015 00:27:29 +0200
Refactor fallocate(1)
1) Simplify the manpage. Just refer to fallocate(2) and stop trying
to list supported file systems. This can change and everbody
with common sense can bring up the relevant manpages of a given
operating system himself.
Use the num-semantics.
2) Use estrtonum() instead of estrtol().
3) Allow multiple arguments.
90c75840894958edb000a1091e13d5dac6b862792015-09-09T22:04:54Z2015-09-09T22:33:17ZRefactor eject(1)FRIGNdev@frign.decommit 90c75840894958edb000a1091e13d5dac6b86279
parent 4c714a929926e7da4e2d8959428306490f8cbd8e
Author: FRIGN <dev@frign.de>
Date: Thu, 10 Sep 2015 00:04:54 +0200
Refactor eject(1)
Reword manpage to be more general (you do not only eject CD-ROM-drives,
but BluRay-drives, floppy drives, LaserDisk-readers, toaster, whatever).
Allow to specify multiple devices in the command line. Doesn't add
LOC (the few more lines added are due to stricter error-checking)
and might become handy for somebody in the future while not
breaking scripts that assume only one argument.
Crying like GNU coreutils when more than one device is given is
not suckless:
$ eject /dev/sr0 /dev/sr1
eject: too many arguments
4c714a929926e7da4e2d8959428306490f8cbd8e2015-09-07T11:07:02Z2015-09-07T11:09:59ZMinor newline fix in ctrlaltdel.8FRIGNdev@frign.decommit 4c714a929926e7da4e2d8959428306490f8cbd8e
parent 2f766ec92d09170f3999433218d1fa7be472c79a
Author: FRIGN <dev@frign.de>
Date: Mon, 7 Sep 2015 13:07:02 +0200
Minor newline fix in ctrlaltdel.8
2f766ec92d09170f3999433218d1fa7be472c79a2015-09-07T11:04:38Z2015-09-07T11:09:59ZAdd myself to LICENSEFRIGNdev@frign.decommit 2f766ec92d09170f3999433218d1fa7be472c79a
parent 2d38b7cb9e4083c060b412c150823396e82ee2e7
Author: FRIGN <dev@frign.de>
Date: Mon, 7 Sep 2015 13:04:38 +0200
Add myself to LICENSE
2d38b7cb9e4083c060b412c150823396e82ee2e72015-09-07T11:02:38Z2015-09-07T11:09:59ZRefactor ctrlaltdel(8)FRIGNdev@frign.decommit 2d38b7cb9e4083c060b412c150823396e82ee2e7
parent 6dedded8594c5adb9d41ca71ce5145cd32da0b68
Author: FRIGN <dev@frign.de>
Date: Mon, 7 Sep 2015 13:02:38 +0200
Refactor ctrlaltdel(8)
1) Rewrite the manpage, don't just copy the util-linux manpage.
2) Fix usage() to reflect exclusivity of flags
3) Style changes.
6dedded8594c5adb9d41ca71ce5145cd32da0b682015-09-07T10:36:08Z2015-09-07T10:47:10ZRemove stdlib.h from clear(1)FRIGNdev@frign.decommit 6dedded8594c5adb9d41ca71ce5145cd32da0b68
parent 7b27c7f87c01b00b6a3e5cd7a60fb832681d5ccc
Author: FRIGN <dev@frign.de>
Date: Mon, 7 Sep 2015 12:36:08 +0200
Remove stdlib.h from clear(1)
This is a remnant of the old EXIT_ days we all want to quickly forget...
7b27c7f87c01b00b6a3e5cd7a60fb832681d5ccc2015-09-07T10:33:16Z2015-09-07T10:47:10ZRefactor clear(1)FRIGNdev@frign.decommit 7b27c7f87c01b00b6a3e5cd7a60fb832681d5ccc
parent b6669b5f196275bcf205abe5904b63bcd9213011
Author: FRIGN <dev@frign.de>
Date: Mon, 7 Sep 2015 12:33:16 +0200
Refactor clear(1)
Adopting best practices(tm) we developed with sbase.
b6669b5f196275bcf205abe5904b63bcd92130112015-09-07T10:21:26Z2015-09-07T10:47:10ZRefactor chvt(1)FRIGNdev@frign.decommit b6669b5f196275bcf205abe5904b63bcd9213011
parent cdaa7b860ea3af523318bc8d3c9a412fcd0d24b4
Author: FRIGN <dev@frign.de>
Date: Mon, 7 Sep 2015 12:21:26 +0200
Refactor chvt(1)
1) Properly implement arg.h.
2) Use estrtonum instead of estrtol.
3) Check close().
4) Small fixes.
5) Update manpage.
cdaa7b860ea3af523318bc8d3c9a412fcd0d24b42015-09-07T09:28:30Z2015-09-07T10:47:10ZFix buildFRIGNdev@frign.decommit cdaa7b860ea3af523318bc8d3c9a412fcd0d24b4
parent 570a2bf4ce82a5836351f8b806ba53c2adff8692
Author: FRIGN <dev@frign.de>
Date: Mon, 7 Sep 2015 11:28:30 +0200
Fix build
Dimitris forgot to change one line, which could, depending on the
environment, break the build ($LD would be empty).
570a2bf4ce82a5836351f8b806ba53c2adff86922015-09-03T18:56:12Z2015-09-03T18:57:21ZUse CC for ubase-box, remove LDsinsin@2f30.orgcommit 570a2bf4ce82a5836351f8b806ba53c2adff8692
parent 52a0874624fcd53f76ef0d2caa82c0463ab93303
Author: sin <sin@2f30.org>
Date: Thu, 3 Sep 2015 19:56:12 +0100
Use CC for ubase-box, remove LD
52a0874624fcd53f76ef0d2caa82c0463ab933032015-07-09T20:25:33Z2015-09-03T18:57:21Zuptime.c: Use the UTMP_PATH from config.def.hYpnoselinuxien@legtux.orgcommit 52a0874624fcd53f76ef0d2caa82c0463ab93303
parent 71da5628d18492f48369d0d00cd86551ec7798d0
Author: Ypnose <linuxien@legtux.org>
Date: Thu, 9 Jul 2015 22:25:33 +0200
uptime.c: Use the UTMP_PATH from config.def.h
71da5628d18492f48369d0d00cd86551ec7798d02015-05-10T16:19:15Z2015-05-11T22:35:54Zmount: helper support + improvementsHiltjo Posthumahiltjo@codemadness.orgcommit 71da5628d18492f48369d0d00cd86551ec7798d0
parent ee5b04a7a3d12e8eeac9c9aa0f1ea45e644f854a
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date: Sun, 10 May 2015 18:19:15 +0200
mount: helper support + improvements
- helper support (mount.type).
- helpers need to be in $PATH, if needed we can add a check for
/sbin/mount.XXXX
- pass -B, -M, -R to helper, its more reliable to pass these named
options with -o however.
- allow prefix "no" for which type no action should be taken:
mount -a -t nonfs,ext4
fix bugs:
- dont modify me->mnt_opts (used strtok).
ee5b04a7a3d12e8eeac9c9aa0f1ea45e644f854a2015-05-10T12:17:56Z2015-05-10T12:41:23Zswitch_root: execv: show error stringHiltjo Posthumahiltjo@codemadness.orgcommit ee5b04a7a3d12e8eeac9c9aa0f1ea45e644f854a
parent 78ddef361c0a87e1a76c0ff15e75de63b8954818
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date: Sun, 10 May 2015 14:17:56 +0200
switch_root: execv: show error string
78ddef361c0a87e1a76c0ff15e75de63b89548182015-05-10T12:16:58Z2015-05-10T12:41:23Zmountpoint: -q should not print errorsHiltjo Posthumahiltjo@codemadness.orgcommit 78ddef361c0a87e1a76c0ff15e75de63b8954818
parent 7f42fe77c38b4a4b3bf3aed810f51d0bd23f52dd
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date: Sun, 10 May 2015 14:16:58 +0200
mountpoint: -q should not print errors
7f42fe77c38b4a4b3bf3aed810f51d0bd23f52dd2015-05-10T11:49:15Z2015-05-10T12:41:23Zstrlcpy, strlcat: print program name, use for usageHiltjo Posthumahiltjo@codemadness.orgcommit 7f42fe77c38b4a4b3bf3aed810f51d0bd23f52dd
parent 06e895a67d6bf8ded3c084a6b26856cd856d8d3d
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date: Sun, 10 May 2015 13:49:15 +0200
strlcpy, strlcat: print program name, use for usage
... same as sbase libutil/strl{cat,cpy}.c. Fix comment in util.h
06e895a67d6bf8ded3c084a6b26856cd856d8d3d2015-05-10T10:17:47Z2015-05-10T11:59:23Zmountpoint: style, order flagsHiltjo Posthumahiltjo@codemadness.orgcommit 06e895a67d6bf8ded3c084a6b26856cd856d8d3d
parent d988f01f0f403e66d4a4597e909932c9989e45d6
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date: Sun, 10 May 2015 12:17:47 +0200
mountpoint: style, order flags
d988f01f0f403e66d4a4597e909932c9989e45d62015-04-26T09:38:41Z2015-04-26T09:40:09Zid: Implement -ntm512elykdav@gmail.comcommit d988f01f0f403e66d4a4597e909932c9989e45d6
parent 91cd388a39c8362713801cd61b5f83ad7bd567be
Author: tm512 <elykdav@gmail.com>
Date: Sun, 26 Apr 2015 10:38:41 +0100
id: Implement -n
91cd388a39c8362713801cd61b5f83ad7bd567be2015-04-03T22:08:54Z2015-04-03T22:10:14ZMakefile: missing ubase-box-install in PHONYYpnoselinuxien@legtux.orgcommit 91cd388a39c8362713801cd61b5f83ad7bd567be
parent 47dc8499865c02f4e9d84cfab55fb1a8f88647c1
Author: Ypnose <linuxien@legtux.org>
Date: Sat, 4 Apr 2015 00:08:54 +0200
Makefile: missing ubase-box-install in PHONY
47dc8499865c02f4e9d84cfab55fb1a8f88647c12015-03-30T20:32:31Z2015-04-01T10:28:22ZTODO: update, thanks YpnoseHiltjo Posthumahiltjo@codemadness.orgcommit 47dc8499865c02f4e9d84cfab55fb1a8f88647c1
parent d594d3aa53bfc6f92ef84383ebbe14fd10806d6c
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date: Mon, 30 Mar 2015 22:32:31 +0200
TODO: update, thanks Ypnose
sort list
d594d3aa53bfc6f92ef84383ebbe14fd10806d6c2015-03-08T12:08:32Z2015-03-11T15:18:10Zlsusb, ps: style: put main at bottomHiltjo Posthumahiltjo@codemadness.orgcommit d594d3aa53bfc6f92ef84383ebbe14fd10806d6c
parent 54b84ee3bdd47e91e7eecef69e280f737e71f092
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date: Sun, 8 Mar 2015 13:08:32 +0100
lsusb, ps: style: put main at bottom
54b84ee3bdd47e91e7eecef69e280f737e71f0922015-02-28T14:39:09Z2015-03-03T13:32:43ZREADME: explain make ubase-box-installHiltjo Posthumahiltjo@codemadness.orgcommit 54b84ee3bdd47e91e7eecef69e280f737e71f092
parent 67220cf2e8836403b269d7436482d64360b12bfe
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date: Sat, 28 Feb 2015 15:39:09 +0100
README: explain make ubase-box-install
67220cf2e8836403b269d7436482d64360b12bfe2015-02-28T12:58:35Z2015-03-03T13:32:43Zmake rule: ubase-box-installHiltjo Posthumahiltjo@codemadness.orgcommit 67220cf2e8836403b269d7436482d64360b12bfe
parent 52df018c66b0466b174e5fe6c7f35d41cff188b6
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date: Sat, 28 Feb 2015 13:58:35 +0100
make rule: ubase-box-install
rule to make ubase-box and setup symlinks for $BIN
some (maybe) interesting info:
$ make LDFLAGS="-s -static" CFLAGS="-Os" PREFIX=/ DESTDIR=`pwd`/static-normal install
$ make LDFLAGS="-s -static" CFLAGS="-Os" PREFIX=/ DESTDIR=`pwd`/static-box ubase-box-install
$ du -sk static-normal/ static-box
1776 static-normal
356 static-box
52df018c66b0466b174e5fe6c7f35d41cff188b62015-02-26T09:45:14Z2015-02-26T11:00:24ZAdd tabs(1) to TODOFRIGNdev@frign.decommit 52df018c66b0466b174e5fe6c7f35d41cff188b6
parent 9297082b969917a3a1e715c5855d3af2960b484d
Author: FRIGN <dev@frign.de>
Date: Thu, 26 Feb 2015 10:45:14 +0100
Add tabs(1) to TODO
Thanks Roberto!
9297082b969917a3a1e715c5855d3af2960b484d2015-02-25T22:04:21Z2015-02-25T22:04:40Zadd tput to TODOsinsin@2f30.orgcommit 9297082b969917a3a1e715c5855d3af2960b484d
parent 9455f51dd8f7bebeb13074b34deeb41f491d5343
Author: sin <sin@2f30.org>
Date: Wed, 25 Feb 2015 22:04:21 +0000
add tput to TODO
9455f51dd8f7bebeb13074b34deeb41f491d53432015-02-22T11:02:20Z2015-02-22T11:34:37Zmount: use libutil/concat instead of custom catfileHiltjo Posthumahiltjo@codemadness.orgcommit 9455f51dd8f7bebeb13074b34deeb41f491d5343
parent a51858016570713a2aca623645aa3ec2ac1a3d6c
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date: Sun, 22 Feb 2015 12:02:20 +0100
mount: use libutil/concat instead of custom catfile
this trivializes the code some more
a51858016570713a2aca623645aa3ec2ac1a3d6c2015-02-22T11:08:16Z2015-02-22T11:08:57ZSync concat() from sbasesinsin@2f30.orgcommit a51858016570713a2aca623645aa3ec2ac1a3d6c
parent 43327506b697598bf565576f9f3a820cc87d79ed
Author: sin <sin@2f30.org>
Date: Sun, 22 Feb 2015 11:08:16 +0000
Sync concat() from sbase
43327506b697598bf565576f9f3a820cc87d79ed2015-02-20T15:21:35Z2015-02-20T15:36:33Zmount: support "noauto" in /etc/fstabHiltjo Posthumahiltjo@codemadness.orgcommit 43327506b697598bf565576f9f3a820cc87d79ed
parent 710081b07abac0f2f8c9a5502e93c24384b98959
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date: Fri, 20 Feb 2015 16:21:35 +0100
mount: support "noauto" in /etc/fstab
710081b07abac0f2f8c9a5502e93c24384b989592015-02-20T15:16:55Z2015-02-20T15:36:33Zmount: change mounted() checkHiltjo Posthumahiltjo@codemadness.orgcommit 710081b07abac0f2f8c9a5502e93c24384b98959
parent a248370eb6b11330426bb6e91515d08b031924bc
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date: Fri, 20 Feb 2015 16:16:55 +0100
mount: change mounted() check
- use getmntent_r instead of getmntent: because getmntent was nested it
overwrote the previous internal mntent structure.
- check mounted() first, if not try to mount: this also makes sure filesystems
were not mounted multiple times (like tmpfs) and errno is not overwritten in
mounted(). For this reason also mount() errno EBUSY can't be used (tested).
a248370eb6b11330426bb6e91515d08b031924bc2015-02-20T15:14:11Z2015-02-20T15:36:33Zmount: catfile: return 0 or -1Hiltjo Posthumahiltjo@codemadness.orgcommit a248370eb6b11330426bb6e91515d08b031924bc
parent 314f2a77f045c3353f1db17cc00cdf81ecbf699c
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date: Fri, 20 Feb 2015 16:14:11 +0100
mount: catfile: return 0 or -1
314f2a77f045c3353f1db17cc00cdf81ecbf699c2015-02-20T15:08:55Z2015-02-20T15:36:33Zlast: spaces to tabsHiltjo Posthumahiltjo@codemadness.orgcommit 314f2a77f045c3353f1db17cc00cdf81ecbf699c
parent faa6fe28e2fabf39a8160dda6438033775d887b2
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date: Fri, 20 Feb 2015 16:08:55 +0100
last: spaces to tabs
faa6fe28e2fabf39a8160dda6438033775d887b22015-02-06T14:20:41Z2015-02-06T15:16:24Zswapon, swapoff: show usage with -a deviceHiltjo Posthumahiltjo@codemadness.orgcommit faa6fe28e2fabf39a8160dda6438033775d887b2
parent 7e394bd70f7ef1be7bee8f646fd0322ff3fdf33f
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date: Fri, 6 Feb 2015 15:20:41 +0100
swapon, swapoff: show usage with -a device
... and small cleanup.
7e394bd70f7ef1be7bee8f646fd0322ff3fdf33f2015-02-06T14:19:33Z2015-02-06T15:16:24Zcode-style: cleanupHiltjo Posthumahiltjo@codemadness.orgcommit 7e394bd70f7ef1be7bee8f646fd0322ff3fdf33f
parent 1c7b96de5570bc1219c6d2378ff0d055a20ae591
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date: Fri, 6 Feb 2015 15:19:33 +0100
code-style: cleanup
- move main() at the bottom.
- put global variables at the top.
- improve usage() lines (consistent with man page).
1c7b96de5570bc1219c6d2378ff0d055a20ae5912015-02-06T14:10:34Z2015-02-06T15:16:24Zdmesg: fix usage and code-styleHiltjo Posthumahiltjo@codemadness.orgcommit 1c7b96de5570bc1219c6d2378ff0d055a20ae591
parent 4855f188c129740840a11f7b74f23739eaa69b06
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date: Fri, 6 Feb 2015 15:10:34 +0100
dmesg: fix usage and code-style
4855f188c129740840a11f7b74f23739eaa69b062015-02-02T18:58:45Z2015-02-06T15:16:24Zfsfreeze: fix usage line, either -f or -uHiltjo Posthumahiltjo@codemadness.orgcommit 4855f188c129740840a11f7b74f23739eaa69b06
parent 96c15e765b083556aa3b46ecabb7264ec96a40f1
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date: Mon, 2 Feb 2015 19:58:45 +0100
fsfreeze: fix usage line, either -f or -u
96c15e765b083556aa3b46ecabb7264ec96a40f12015-02-02T18:58:00Z2015-02-06T15:16:23Zvtallow, who: usage using argv0Hiltjo Posthumahiltjo@codemadness.orgcommit 96c15e765b083556aa3b46ecabb7264ec96a40f1
parent c7f472f468135f5294b3a51ccf1fdd162aa3653b
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date: Mon, 2 Feb 2015 19:58:00 +0100
vtallow, who: usage using argv0
c7f472f468135f5294b3a51ccf1fdd162aa3653b2015-02-02T18:56:59Z2015-02-06T15:16:23Zdd: code-style, linewrapHiltjo Posthumahiltjo@codemadness.orgcommit c7f472f468135f5294b3a51ccf1fdd162aa3653b
parent f0cfd58e932e01a7aad5d923aa4e558a02ff404e
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date: Mon, 2 Feb 2015 19:56:59 +0100
dd: code-style, linewrap
f0cfd58e932e01a7aad5d923aa4e558a02ff404e2015-02-02T18:56:17Z2015-02-06T15:16:23Zchvt: usage using argv0Hiltjo Posthumahiltjo@codemadness.orgcommit f0cfd58e932e01a7aad5d923aa4e558a02ff404e
parent a46944add9146303500834b2c5d336694bd04a72
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date: Mon, 2 Feb 2015 19:56:17 +0100
chvt: usage using argv0
a46944add9146303500834b2c5d336694bd04a722015-02-02T18:54:00Z2015-02-06T15:16:23Zdd.1: fixHiltjo Posthumahiltjo@codemadness.orgcommit a46944add9146303500834b2c5d336694bd04a72
parent 363ac4676685a3e562656a0e5f16e6a5a02e0490
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date: Mon, 2 Feb 2015 19:54:00 +0100
dd.1: fix
363ac4676685a3e562656a0e5f16e6a5a02e04902015-02-02T17:46:18Z2015-02-06T15:16:23ZMakefile: make man pages with ubase VERSIONHiltjo Posthumahiltjo@codemadness.orgcommit 363ac4676685a3e562656a0e5f16e6a5a02e0490
parent 544779a7b87dd38c9a1012614e22df987bf64f82
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date: Mon, 2 Feb 2015 18:46:18 +0100
Makefile: make man pages with ubase VERSION
544779a7b87dd38c9a1012614e22df987bf64f822015-02-02T17:34:26Z2015-02-06T15:16:23Zdoc: convert man pages to mandoc, fix some typos in the processHiltjo Posthumahiltjo@codemadness.orgcommit 544779a7b87dd38c9a1012614e22df987bf64f82
parent 6253da55c13be52a7f6cf2f038a051b397ca208f
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date: Mon, 2 Feb 2015 18:34:26 +0100
doc: convert man pages to mandoc, fix some typos in the process
6253da55c13be52a7f6cf2f038a051b397ca208f2015-02-03T11:31:47Z2015-02-03T11:56:06Zsupport llvm-arEon S. Jeonesjeon@hyunmu.amcommit 6253da55c13be52a7f6cf2f038a051b397ca208f
parent 8fe02392edbb05213e114ded8e371fd7dcbe94a7
Author: Eon S. Jeon <esjeon@hyunmu.am>
Date: Tue, 3 Feb 2015 20:31:47 +0900
support llvm-ar
llvm-ar doesn't understand flags prefixed with dashes.
8fe02392edbb05213e114ded8e371fd7dcbe94a72015-02-02T22:32:03Z2015-02-02T22:32:56Zdd: Only sync oncesinsin@2f30.orgcommit 8fe02392edbb05213e114ded8e371fd7dcbe94a7
parent 1c2006fd2ca96237e321cd6a588ec13d12f195c2
Author: sin <sin@2f30.org>
Date: Mon, 2 Feb 2015 22:32:03 +0000
dd: Only sync once
1c2006fd2ca96237e321cd6a588ec13d12f195c22015-01-26T19:25:54Z2015-01-26T19:26:22ZAdd Risto to LICENSEsinsin@2f30.orgcommit 1c2006fd2ca96237e321cd6a588ec13d12f195c2
parent ab4f93cf47f423da2399cbe35cbc6c109e5e1825
Author: sin <sin@2f30.org>
Date: Mon, 26 Jan 2015 19:25:54 +0000
Add Risto to LICENSE
ab4f93cf47f423da2399cbe35cbc6c109e5e18252015-01-26T18:53:14Z2015-01-26T19:26:22ZFix df hanging when statvfs() fails.Risto Salminenripejcp@gmail.comcommit ab4f93cf47f423da2399cbe35cbc6c109e5e1825
parent f701698297ec1d1230caaa9403362c3a2b95f5ed
Author: Risto Salminen <ripejcp@gmail.com>
Date: Mon, 26 Jan 2015 20:53:14 +0200
Fix df hanging when statvfs() fails.
Now df prints out an appropriate error message when statvfs() fails
instead of just hanging. Also make df return 1 when statvfs() fails.
f701698297ec1d1230caaa9403362c3a2b95f5ed2015-01-16T16:19:29Z2015-01-16T16:20:16ZDon't do a blocking open in ttytostr()sinsin@2f30.orgcommit f701698297ec1d1230caaa9403362c3a2b95f5ed
parent a7a561ef008ea0842b54713434d5f3fd79e8ccec
Author: sin <sin@2f30.org>
Date: Fri, 16 Jan 2015 16:19:29 +0000
Don't do a blocking open in ttytostr()
a7a561ef008ea0842b54713434d5f3fd79e8ccec2015-01-16T16:06:42Z2015-01-16T16:10:38ZHandle cleanup properly in ttytostr()sinsin@2f30.orgcommit a7a561ef008ea0842b54713434d5f3fd79e8ccec
parent 8a95422ff14aed8c8cd7cfad51913db90493a50c
Author: sin <sin@2f30.org>
Date: Fri, 16 Jan 2015 16:06:42 +0000
Handle cleanup properly in ttytostr()
8a95422ff14aed8c8cd7cfad51913db90493a50c2015-01-16T16:02:25Z2015-01-16T16:10:37ZCheck if the ttymaj/ttymin match is actually a ttysinsin@2f30.orgcommit 8a95422ff14aed8c8cd7cfad51913db90493a50c
parent a5c30abf8f1ac7a51a733544249b70b7ce90f1e2
Author: sin <sin@2f30.org>
Date: Fri, 16 Jan 2015 16:02:25 +0000
Check if the ttymaj/ttymin match is actually a tty
a5c30abf8f1ac7a51a733544249b70b7ce90f1e22015-01-16T15:54:15Z2015-01-16T15:55:07ZUse TTY_NAME_MAX instead of PATH_MAXsinsin@2f30.orgcommit a5c30abf8f1ac7a51a733544249b70b7ce90f1e2
parent d76319f838dfb42c13c099012e72ca11d37d7178
Author: sin <sin@2f30.org>
Date: Fri, 16 Jan 2015 15:54:15 +0000
Use TTY_NAME_MAX instead of PATH_MAX
d76319f838dfb42c13c099012e72ca11d37d71782015-01-16T15:32:55Z2015-01-16T15:55:07ZProperly match (ttymaj, ttymin) pairs to tty names in /devsinsin@2f30.orgcommit d76319f838dfb42c13c099012e72ca11d37d7178
parent 2a0deb76009631af15b1dd7b435392bf2511b319
Author: sin <sin@2f30.org>
Date: Fri, 16 Jan 2015 15:32:55 +0000
Properly match (ttymaj, ttymin) pairs to tty names in /dev
For the common case where we have pts/ or tty do it straight
away. Otherwise traverse /dev for a match. This fixes ps(1) when
it is executed over a serial terminal with tty names like ttyAMA0.
2a0deb76009631af15b1dd7b435392bf2511b3192014-12-31T22:01:58Z2014-12-31T22:02:29ZUpdate LICENSEsinsin@2f30.orgcommit 2a0deb76009631af15b1dd7b435392bf2511b319
parent 084d375a7da8a3a65603c721f1bf004998b61a06
Author: sin <sin@2f30.org>
Date: Wed, 31 Dec 2014 22:01:58 +0000
Update LICENSE
084d375a7da8a3a65603c721f1bf004998b61a062014-12-23T18:10:27Z2014-12-23T18:10:54ZUpdate LICENSE file just like for sbasesinsin@2f30.orgcommit 084d375a7da8a3a65603c721f1bf004998b61a06
parent 42db5e13d01486fb16e690fd7e3b1d9d7777cd83
Author: sin <sin@2f30.org>
Date: Tue, 23 Dec 2014 18:10:27 +0000
Update LICENSE file just like for sbase
42db5e13d01486fb16e690fd7e3b1d9d7777cd832014-12-05T19:06:22Z2014-12-05T19:06:40ZRename to unlock/lock as opposed to enable/disablesinsin@2f30.orgcommit 42db5e13d01486fb16e690fd7e3b1d9d7777cd83
parent b0b8579eb3c4add4f02b88b2332bd92ba788d3bd
Author: sin <sin@2f30.org>
Date: Fri, 5 Dec 2014 19:06:22 +0000
Rename to unlock/lock as opposed to enable/disable
b0b8579eb3c4add4f02b88b2332bd92ba788d3bd2014-12-05T15:41:13Z2014-12-05T15:41:13ZAdd vtallow.1sinsin@2f30.orgcommit b0b8579eb3c4add4f02b88b2332bd92ba788d3bd
parent 4269d523e2c5cc65c89e5340a55febe72c3d3f49
Author: sin <sin@2f30.org>
Date: Fri, 5 Dec 2014 15:41:13 +0000
Add vtallow.1
4269d523e2c5cc65c89e5340a55febe72c3d3f492014-12-05T15:04:37Z2014-12-05T15:16:07ZAdd vtallow(1) to enable or disable VT switchsinsin@2f30.orgcommit 4269d523e2c5cc65c89e5340a55febe72c3d3f49
parent 74c0abb6a2f9b8cac0653f1b96646aaf74b91a68
Author: sin <sin@2f30.org>
Date: Fri, 5 Dec 2014 15:04:37 +0000
Add vtallow(1) to enable or disable VT switch
74c0abb6a2f9b8cac0653f1b96646aaf74b91a682014-11-30T14:12:40Z2014-11-30T14:12:52ZUse -D_XOPEN_SOURCE=700sinsin@2f30.orgcommit 74c0abb6a2f9b8cac0653f1b96646aaf74b91a68
parent cee1a0170d17f6f9bbddcaa97a30dd7fa4f0387f
Author: sin <sin@2f30.org>
Date: Sun, 30 Nov 2014 14:12:40 +0000
Use -D_XOPEN_SOURCE=700
cee1a0170d17f6f9bbddcaa97a30dd7fa4f0387f2014-11-30T14:08:20Z2014-11-30T14:08:42Zwatch: If period is negative default to 0.1ssinsin@2f30.orgcommit cee1a0170d17f6f9bbddcaa97a30dd7fa4f0387f
parent 703e18185c38b869d8f001241aa6b33c832ff5dc
Author: sin <sin@2f30.org>
Date: Sun, 30 Nov 2014 14:08:20 +0000
watch: If period is negative default to 0.1s
703e18185c38b869d8f001241aa6b33c832ff5dc2014-11-30T14:03:25Z2014-11-30T14:05:44ZUpdate watch(1) to handle more accurate intervalssinsin@2f30.orgcommit 703e18185c38b869d8f001241aa6b33c832ff5dc
parent 4cb108f557d6c34f22166430f853e64335e94461
Author: sin <sin@2f30.org>
Date: Sun, 30 Nov 2014 14:03:25 +0000
Update watch(1) to handle more accurate intervals
4cb108f557d6c34f22166430f853e64335e944612014-11-30T13:28:01Z2014-11-30T13:28:26ZNo need for dmesg_show() to have an fdsinsin@2f30.orgcommit 4cb108f557d6c34f22166430f853e64335e94461
parent 10d6bf2f4d73f2712a058327885aca19a44cee02
Author: sin <sin@2f30.org>
Date: Sun, 30 Nov 2014 13:28:01 +0000
No need for dmesg_show() to have an fd
10d6bf2f4d73f2712a058327885aca19a44cee022014-11-30T13:12:15Z2014-11-30T13:12:33ZStop using *_FILENOsinsin@2f30.orgcommit 10d6bf2f4d73f2712a058327885aca19a44cee02
parent 2d45a04b92df641158ca400873a522fede1d9a01
Author: sin <sin@2f30.org>
Date: Sun, 30 Nov 2014 13:12:15 +0000
Stop using *_FILENO
2d45a04b92df641158ca400873a522fede1d9a012014-11-30T13:04:47Z2014-11-30T13:05:24ZCheck if 0, 1, 2 are valid tty file descriptorssinsin@2f30.orgcommit 2d45a04b92df641158ca400873a522fede1d9a01
parent 6da76775cb54635ce07dfcd3894cdef3df8c692f
Author: sin <sin@2f30.org>
Date: Sun, 30 Nov 2014 13:04:47 +0000
Check if 0, 1, 2 are valid tty file descriptors