ubase, branch HEAD suckless linux base utils a570a80ed1606bed43118cb148fc83c3ac22b5c1 2024-03-07T21:35:31Z 2024-03-07T21:35:31Z 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. Roberto E. Vargas Caballero k0ga@shike2.com commit 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. 4cd0b143801b1135abd2b7012cfed020710a4e68 2024-02-13T02:03:12Z 2024-03-06T09:12:49Z su: don't set $PATH neeshy neeshy@tfwno.gf commit 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. e9bcdcc341d74f0abaa171703ac031b55e9020c0 2024-02-13T02:41:02Z 2024-03-06T09:11:29Z su: check $SHELL for validity neeshy neeshy@tfwno.gf commit 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. cf9e26d7fa2d13ede8ce2830819e311fc0dd83b9 2024-02-12T21:25:50Z 2024-03-06T09:11:23Z su: fix setting argv0 neeshy neeshy@tfwno.gf commit 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. 8f5a0c32362dc447ab066f9c3ad7802153a6bb40 2024-02-13T02:26:35Z 2024-03-06T09:11:07Z su: simplify logic neeshy neeshy@tfwno.gf commit 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 a015607af0075badc0cd90523c43f391daa0572d 2023-09-22T08:06:21Z 2023-09-26T07:22:32Z Explicitly include sys/sysmacros.h for makedev etc Markus Rudy webmaster@burgerdev.de commit 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 3c88778c6c85d97fb63c41c05304519e0484b07c 2019-03-13T03:38:26Z 2019-03-14T11:42:59Z umount: Fix use of uninitialized variable Michael Forney mforney@mforney.org commit 3c88778c6c85d97fb63c41c05304519e0484b07c parent 140efda3a263b9e6d922633c418fa9846d35731d Author: Michael Forney <mforney@mforney.org> Date: Tue, 12 Mar 2019 20:38:26 -0700 umount: Fix use of uninitialized variable 140efda3a263b9e6d922633c418fa9846d35731d 2018-09-25T18:54:25Z 2019-01-30T11:58:55Z passwd: fix crashes for unencrypted passwords starting with 'x'. Mario Rugiero mrugiero@gmail.com commit 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". 4f1b54dd92aa858432f648fc886700f7b369ed84 2018-09-29T18:28:37Z 2019-01-30T11:57:49Z passwd: prevent segfault when running as root John Regan john@jrjrtech.com commit 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. 7ffe3cfacce716b08139c8713f37fd38b4bce6f7 2018-12-28T12:49:54Z 2019-01-30T11:25:33Z uptime: Fix user/s printing (grammar error) when users == 0. parazyd parazyd@dyne.org commit 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> 604b66ae8b4005d89eed1cbab45a64cb57e75390 2018-07-02T13:03:49Z 2018-07-02T13:03:57Z Add blkdiscard(8) sin sin@2f30.org commit 604b66ae8b4005d89eed1cbab45a64cb57e75390 parent 4f5837147a14e0fb8ec1a2a46a9c4045bdb75696 Author: sin <sin@2f30.org> Date: Mon, 2 Jul 2018 14:03:49 +0100 Add blkdiscard(8) 4f5837147a14e0fb8ec1a2a46a9c4045bdb75696 2018-04-07T02:33:30Z 2018-06-30T16:38:07Z mount: don't call realpath on root target Ioan-Adrian Ratiu adi@adirat.com commit 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> 11d2d1faaf9cd0e2b6796c17390137dedcdc90bb 2018-06-30T16:31:53Z 2018-06-30T16:31:53Z Fix segfault in killall5 without -o sin sin@2f30.org commit 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> 2d58716c23f946a84a941579ede6508f0b133361 2018-06-11T20:45:56Z 2018-06-30T16:27:45Z ps: fix argv0 position in usage line Mattias Andrée maandree@kth.se commit 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> 55795531f03ccb5a41cf80fd564b862c103252cc 2017-10-10T15:27:27Z 2017-10-10T15:28:15Z dd: Use sigaction(2) to obviate select(2) Eric Pruitt eric.pruitt@gmail.com commit 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. fae9ca81a2eaf3534299b7ca3033b1e6605f9ab2 2016-10-24T03:59:51Z 2017-08-22T11:36:56Z passwd: Use a random salt when encrypting passwords Michael Forney mforney@mforney.org commit 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 3a5939e81018a05d710d0f3c8cea8794dd8a1637 2016-10-23T21:00:29Z 2017-08-22T11:36:28Z mount: Don't pass {,no}auto to kernel Michael Forney mforney@mforney.org commit 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 e3dacbb542daeda7797855b01b3afbf7c433ad5f 2016-09-25T10:24:17Z 2016-09-26T08:57:54Z respawn: reopen the fifo at end of line, and use read-only Mattias Andrée maandree@kth.se commit 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> fa7ae96e0fc8963b0fdd179f0555b66c424555f4 2016-04-24T16:46:53Z 2016-04-24T16:47:28Z passwd: fix function def style sin sin@2f30.org commit fa7ae96e0fc8963b0fdd179f0555b66c424555f4 parent 5b16e8a4eb5075155ff87ec5595abeb705a6aab4 Author: sin <sin@2f30.org> Date: Sun, 24 Apr 2016 17:46:53 +0100 passwd: fix function def style 5b16e8a4eb5075155ff87ec5595abeb705a6aab4 2016-03-26T14:46:29Z 2016-04-20T22:08:51Z pwdx: fix off-by-one bug Mattias Andrée maandree@kth.se commit 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> f26a1449bfa18a6fbbe263f084df4e490772e9d3 2016-03-26T11:58:37Z 2016-04-20T22:08:51Z Add pwdx(1) Mattias Andrée maandree@kth.se commit 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> 28795cffe22ee6a645e4763f6b9bd0e422dddb2a 2016-03-26T10:37:33Z 2016-03-26T19:08:10Z fsfreeze: make it clear the either -f or -u must be specified, not optional Mattias Andrée maandree@kth.se commit 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> 48728b25945a864216a4e3a96a4d043363007de8 2016-03-26T19:06:18Z 2016-03-26T19:08:10Z nologin: Sort includes sin sin@2f30.org commit 48728b25945a864216a4e3a96a4d043363007de8 parent 6e7386edb34f5acdd5dbbee68e85b16415a3b4aa Author: sin <sin@2f30.org> Date: Sat, 26 Mar 2016 19:06:18 +0000 nologin: Sort includes 6e7386edb34f5acdd5dbbee68e85b16415a3b4aa 2016-03-26T10:30:56Z 2016-03-26T19:08:10Z Add nologin(8) Mattias Andrée maandree@kth.se commit 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> e0dc3f9546b3cd839aef8e58376c6295679a5ed5 2016-03-16T09:23:50Z 2016-03-16T10:17:51Z dd: implement conv=notrunc support Eivind Uggedal eivind@uggedal.com commit e0dc3f9546b3cd839aef8e58376c6295679a5ed5 parent 596663c1b1f140c10ba1facede783201d6a876a7 Author: Eivind Uggedal <eivind@uggedal.com> Date: Wed, 16 Mar 2016 09:23:50 +0000 dd: implement conv=notrunc support 596663c1b1f140c10ba1facede783201d6a876a7 2016-03-15T21:06:28Z 2016-03-16T10:17:51Z dd: truncate file when using seek= Eivind Uggedal eivind@uggedal.com commit 596663c1b1f140c10ba1facede783201d6a876a7 parent e358d74a805829dddf987ff62f42c7631df48e88 Author: Eivind Uggedal <eivind@uggedal.com> Date: Tue, 15 Mar 2016 21:06:28 +0000 dd: truncate file when using seek= e358d74a805829dddf987ff62f42c7631df48e88 2016-03-15T20:27:49Z 2016-03-16T10:17:51Z dd: don't let failure to change pipe size affect exit code Eivind Uggedal eivind@uggedal.com commit 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 c64b5b04c7993765ab67207e86db92a48d7087f4 2016-03-15T20:16:05Z 2016-03-16T10:17:51Z dd: allow count=0 Eivind Uggedal eivind@uggedal.com commit c64b5b04c7993765ab67207e86db92a48d7087f4 parent e5d88b0f30feb2f0374c2e09ecd2685ba1f4e717 Author: Eivind Uggedal <eivind@uggedal.com> Date: Tue, 15 Mar 2016 20:16:05 +0000 dd: allow count=0 e5d88b0f30feb2f0374c2e09ecd2685ba1f4e717 2016-03-15T16:03:14Z 2016-03-16T10:17:51Z dd: remove if= noatime optimization Eivind Uggedal eivind@uggedal.com commit e5d88b0f30feb2f0374c2e09ecd2685ba1f4e717 parent 05a69d9d0decf9e8d5037bd8d20bb20c235b2017 Author: Eivind Uggedal <eivind@uggedal.com> Date: Tue, 15 Mar 2016 16:03:14 +0000 dd: remove if= noatime optimization 05a69d9d0decf9e8d5037bd8d20bb20c235b2017 2016-03-15T16:02:33Z 2016-03-16T10:17:51Z dd: always create of= even if seek= is used Eivind Uggedal eivind@uggedal.com commit 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 0e7ab0ca9e1769d9c5e004378f14c9a7daf4e343 2016-02-22T14:03:36Z 2016-02-22T14:36:21Z arg.h: fixed argv checks order Lucas Gabriel Vuotto l.vuotto92@gmail.com commit 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> ac4fcddd50aba673e38563a69b7a8e5a20ef28e8 2016-02-16T15:19:25Z 2016-02-16T15:20:10Z df: Don't scream if statvfs() fails sin sin@2f30.org commit ac4fcddd50aba673e38563a69b7a8e5a20ef28e8 parent 4c33cf2a98312a2947c365f7cfbff29615efe2a5 Author: sin <sin@2f30.org> Date: Tue, 16 Feb 2016 15:19:25 +0000 df: Don't scream if statvfs() fails 4c33cf2a98312a2947c365f7cfbff29615efe2a5 2016-02-11T14:25:23Z 2016-02-11T14:36:54Z Use estrlcat where possible FRIGN dev@frign.de commit 4c33cf2a98312a2947c365f7cfbff29615efe2a5 parent 4dbd00fc948efef8e8bbe4d52189e98701227948 Author: FRIGN <dev@frign.de> Date: Thu, 11 Feb 2016 15:25:23 +0100 Use estrlcat where possible 4dbd00fc948efef8e8bbe4d52189e98701227948 2016-01-28T21:53:36Z 2016-02-11T10:16:41Z mount: fix mount helper fs option handling Brad Barden b+suckless@13os.net commit 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. 4ece17d605c3a6c508639238b30f8f3f7dddb2f4 2016-01-06T18:00:19Z 2016-02-11T10:16:41Z LICENSE: update year and bump to top Hiltjo Posthuma hiltjo@codemadness.org commit 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 3af0bbd564f42d9b70e0f854a6e0ab8add1e7aee 2016-01-01T10:05:06Z 2016-01-04T18:07:44Z fix several problems in dd izabera izaberina@gmail.com commit 3af0bbd564f42d9b70e0f854a6e0ab8add1e7aee parent 4c34f6b10033d573cb2d62ee2f9a6523f1cc30cb Author: izabera <izaberina@gmail.com> Date: Fri, 1 Jan 2016 11:05:06 +0100 fix several problems in dd 4c34f6b10033d573cb2d62ee2f9a6523f1cc30cb 2016-01-01T10:32:13Z 2016-01-01T12:20:11Z Update copyright years sin sin@2f30.org commit 4c34f6b10033d573cb2d62ee2f9a6523f1cc30cb parent a8f95b2f9a8e85193b8ebd53a7e4aeae12e02480 Author: sin <sin@2f30.org> Date: Fri, 1 Jan 2016 10:32:13 +0000 Update copyright years a8f95b2f9a8e85193b8ebd53a7e4aeae12e02480 2015-10-07T12:53:41Z 2015-10-07T12:57:24Z Use SLIST instead of TAILQ for pidof(8) sin sin@2f30.org commit 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) d3efa66c82d2e371b5813487e2c3ad9ef3100e6f 2015-10-07T12:50:38Z 2015-10-07T12:57:24Z Use SLIST instead of TAILQ for killall5(8) sin sin@2f30.org commit 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. 3e7e1e96440dc0e0034eb5071a71de3bcb1e463a 2015-09-12T20:52:33Z 2015-09-14T09:15:55Z Fix fallocate(1) manpage FRIGN dev@frign.de commit 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. e3b20bbda0a7a23141702b3250dc64f4fd2d8f87 2015-09-10T22:27:29Z 2015-09-14T09:15:55Z Refactor fallocate(1) FRIGN dev@frign.de commit 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. 90c75840894958edb000a1091e13d5dac6b86279 2015-09-09T22:04:54Z 2015-09-09T22:33:17Z Refactor eject(1) FRIGN dev@frign.de commit 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 4c714a929926e7da4e2d8959428306490f8cbd8e 2015-09-07T11:07:02Z 2015-09-07T11:09:59Z Minor newline fix in ctrlaltdel.8 FRIGN dev@frign.de commit 4c714a929926e7da4e2d8959428306490f8cbd8e parent 2f766ec92d09170f3999433218d1fa7be472c79a Author: FRIGN <dev@frign.de> Date: Mon, 7 Sep 2015 13:07:02 +0200 Minor newline fix in ctrlaltdel.8 2f766ec92d09170f3999433218d1fa7be472c79a 2015-09-07T11:04:38Z 2015-09-07T11:09:59Z Add myself to LICENSE FRIGN dev@frign.de commit 2f766ec92d09170f3999433218d1fa7be472c79a parent 2d38b7cb9e4083c060b412c150823396e82ee2e7 Author: FRIGN <dev@frign.de> Date: Mon, 7 Sep 2015 13:04:38 +0200 Add myself to LICENSE 2d38b7cb9e4083c060b412c150823396e82ee2e7 2015-09-07T11:02:38Z 2015-09-07T11:09:59Z Refactor ctrlaltdel(8) FRIGN dev@frign.de commit 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. 6dedded8594c5adb9d41ca71ce5145cd32da0b68 2015-09-07T10:36:08Z 2015-09-07T10:47:10Z Remove stdlib.h from clear(1) FRIGN dev@frign.de commit 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... 7b27c7f87c01b00b6a3e5cd7a60fb832681d5ccc 2015-09-07T10:33:16Z 2015-09-07T10:47:10Z Refactor clear(1) FRIGN dev@frign.de commit 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. b6669b5f196275bcf205abe5904b63bcd9213011 2015-09-07T10:21:26Z 2015-09-07T10:47:10Z Refactor chvt(1) FRIGN dev@frign.de commit 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. cdaa7b860ea3af523318bc8d3c9a412fcd0d24b4 2015-09-07T09:28:30Z 2015-09-07T10:47:10Z Fix build FRIGN dev@frign.de commit 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). 570a2bf4ce82a5836351f8b806ba53c2adff8692 2015-09-03T18:56:12Z 2015-09-03T18:57:21Z Use CC for ubase-box, remove LD sin sin@2f30.org commit 570a2bf4ce82a5836351f8b806ba53c2adff8692 parent 52a0874624fcd53f76ef0d2caa82c0463ab93303 Author: sin <sin@2f30.org> Date: Thu, 3 Sep 2015 19:56:12 +0100 Use CC for ubase-box, remove LD 52a0874624fcd53f76ef0d2caa82c0463ab93303 2015-07-09T20:25:33Z 2015-09-03T18:57:21Z uptime.c: Use the UTMP_PATH from config.def.h Ypnose linuxien@legtux.org commit 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 71da5628d18492f48369d0d00cd86551ec7798d0 2015-05-10T16:19:15Z 2015-05-11T22:35:54Z mount: helper support + improvements Hiltjo Posthuma hiltjo@codemadness.org commit 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). ee5b04a7a3d12e8eeac9c9aa0f1ea45e644f854a 2015-05-10T12:17:56Z 2015-05-10T12:41:23Z switch_root: execv: show error string Hiltjo Posthuma hiltjo@codemadness.org commit ee5b04a7a3d12e8eeac9c9aa0f1ea45e644f854a parent 78ddef361c0a87e1a76c0ff15e75de63b8954818 Author: Hiltjo Posthuma <hiltjo@codemadness.org> Date: Sun, 10 May 2015 14:17:56 +0200 switch_root: execv: show error string 78ddef361c0a87e1a76c0ff15e75de63b8954818 2015-05-10T12:16:58Z 2015-05-10T12:41:23Z mountpoint: -q should not print errors Hiltjo Posthuma hiltjo@codemadness.org commit 78ddef361c0a87e1a76c0ff15e75de63b8954818 parent 7f42fe77c38b4a4b3bf3aed810f51d0bd23f52dd Author: Hiltjo Posthuma <hiltjo@codemadness.org> Date: Sun, 10 May 2015 14:16:58 +0200 mountpoint: -q should not print errors 7f42fe77c38b4a4b3bf3aed810f51d0bd23f52dd 2015-05-10T11:49:15Z 2015-05-10T12:41:23Z strlcpy, strlcat: print program name, use for usage Hiltjo Posthuma hiltjo@codemadness.org commit 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 06e895a67d6bf8ded3c084a6b26856cd856d8d3d 2015-05-10T10:17:47Z 2015-05-10T11:59:23Z mountpoint: style, order flags Hiltjo Posthuma hiltjo@codemadness.org commit 06e895a67d6bf8ded3c084a6b26856cd856d8d3d parent d988f01f0f403e66d4a4597e909932c9989e45d6 Author: Hiltjo Posthuma <hiltjo@codemadness.org> Date: Sun, 10 May 2015 12:17:47 +0200 mountpoint: style, order flags d988f01f0f403e66d4a4597e909932c9989e45d6 2015-04-26T09:38:41Z 2015-04-26T09:40:09Z id: Implement -n tm512 elykdav@gmail.com commit d988f01f0f403e66d4a4597e909932c9989e45d6 parent 91cd388a39c8362713801cd61b5f83ad7bd567be Author: tm512 <elykdav@gmail.com> Date: Sun, 26 Apr 2015 10:38:41 +0100 id: Implement -n 91cd388a39c8362713801cd61b5f83ad7bd567be 2015-04-03T22:08:54Z 2015-04-03T22:10:14Z Makefile: missing ubase-box-install in PHONY Ypnose linuxien@legtux.org commit 91cd388a39c8362713801cd61b5f83ad7bd567be parent 47dc8499865c02f4e9d84cfab55fb1a8f88647c1 Author: Ypnose <linuxien@legtux.org> Date: Sat, 4 Apr 2015 00:08:54 +0200 Makefile: missing ubase-box-install in PHONY 47dc8499865c02f4e9d84cfab55fb1a8f88647c1 2015-03-30T20:32:31Z 2015-04-01T10:28:22Z TODO: update, thanks Ypnose Hiltjo Posthuma hiltjo@codemadness.org commit 47dc8499865c02f4e9d84cfab55fb1a8f88647c1 parent d594d3aa53bfc6f92ef84383ebbe14fd10806d6c Author: Hiltjo Posthuma <hiltjo@codemadness.org> Date: Mon, 30 Mar 2015 22:32:31 +0200 TODO: update, thanks Ypnose sort list d594d3aa53bfc6f92ef84383ebbe14fd10806d6c 2015-03-08T12:08:32Z 2015-03-11T15:18:10Z lsusb, ps: style: put main at bottom Hiltjo Posthuma hiltjo@codemadness.org commit 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 54b84ee3bdd47e91e7eecef69e280f737e71f092 2015-02-28T14:39:09Z 2015-03-03T13:32:43Z README: explain make ubase-box-install Hiltjo Posthuma hiltjo@codemadness.org commit 54b84ee3bdd47e91e7eecef69e280f737e71f092 parent 67220cf2e8836403b269d7436482d64360b12bfe Author: Hiltjo Posthuma <hiltjo@codemadness.org> Date: Sat, 28 Feb 2015 15:39:09 +0100 README: explain make ubase-box-install 67220cf2e8836403b269d7436482d64360b12bfe 2015-02-28T12:58:35Z 2015-03-03T13:32:43Z make rule: ubase-box-install Hiltjo Posthuma hiltjo@codemadness.org commit 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 52df018c66b0466b174e5fe6c7f35d41cff188b6 2015-02-26T09:45:14Z 2015-02-26T11:00:24Z Add tabs(1) to TODO FRIGN dev@frign.de commit 52df018c66b0466b174e5fe6c7f35d41cff188b6 parent 9297082b969917a3a1e715c5855d3af2960b484d Author: FRIGN <dev@frign.de> Date: Thu, 26 Feb 2015 10:45:14 +0100 Add tabs(1) to TODO Thanks Roberto! 9297082b969917a3a1e715c5855d3af2960b484d 2015-02-25T22:04:21Z 2015-02-25T22:04:40Z add tput to TODO sin sin@2f30.org commit 9297082b969917a3a1e715c5855d3af2960b484d parent 9455f51dd8f7bebeb13074b34deeb41f491d5343 Author: sin <sin@2f30.org> Date: Wed, 25 Feb 2015 22:04:21 +0000 add tput to TODO 9455f51dd8f7bebeb13074b34deeb41f491d5343 2015-02-22T11:02:20Z 2015-02-22T11:34:37Z mount: use libutil/concat instead of custom catfile Hiltjo Posthuma hiltjo@codemadness.org commit 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 a51858016570713a2aca623645aa3ec2ac1a3d6c 2015-02-22T11:08:16Z 2015-02-22T11:08:57Z Sync concat() from sbase sin sin@2f30.org commit a51858016570713a2aca623645aa3ec2ac1a3d6c parent 43327506b697598bf565576f9f3a820cc87d79ed Author: sin <sin@2f30.org> Date: Sun, 22 Feb 2015 11:08:16 +0000 Sync concat() from sbase 43327506b697598bf565576f9f3a820cc87d79ed 2015-02-20T15:21:35Z 2015-02-20T15:36:33Z mount: support "noauto" in /etc/fstab Hiltjo Posthuma hiltjo@codemadness.org commit 43327506b697598bf565576f9f3a820cc87d79ed parent 710081b07abac0f2f8c9a5502e93c24384b98959 Author: Hiltjo Posthuma <hiltjo@codemadness.org> Date: Fri, 20 Feb 2015 16:21:35 +0100 mount: support "noauto" in /etc/fstab 710081b07abac0f2f8c9a5502e93c24384b98959 2015-02-20T15:16:55Z 2015-02-20T15:36:33Z mount: change mounted() check Hiltjo Posthuma hiltjo@codemadness.org commit 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). a248370eb6b11330426bb6e91515d08b031924bc 2015-02-20T15:14:11Z 2015-02-20T15:36:33Z mount: catfile: return 0 or -1 Hiltjo Posthuma hiltjo@codemadness.org commit a248370eb6b11330426bb6e91515d08b031924bc parent 314f2a77f045c3353f1db17cc00cdf81ecbf699c Author: Hiltjo Posthuma <hiltjo@codemadness.org> Date: Fri, 20 Feb 2015 16:14:11 +0100 mount: catfile: return 0 or -1 314f2a77f045c3353f1db17cc00cdf81ecbf699c 2015-02-20T15:08:55Z 2015-02-20T15:36:33Z last: spaces to tabs Hiltjo Posthuma hiltjo@codemadness.org commit 314f2a77f045c3353f1db17cc00cdf81ecbf699c parent faa6fe28e2fabf39a8160dda6438033775d887b2 Author: Hiltjo Posthuma <hiltjo@codemadness.org> Date: Fri, 20 Feb 2015 16:08:55 +0100 last: spaces to tabs faa6fe28e2fabf39a8160dda6438033775d887b2 2015-02-06T14:20:41Z 2015-02-06T15:16:24Z swapon, swapoff: show usage with -a device Hiltjo Posthuma hiltjo@codemadness.org commit 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. 7e394bd70f7ef1be7bee8f646fd0322ff3fdf33f 2015-02-06T14:19:33Z 2015-02-06T15:16:24Z code-style: cleanup Hiltjo Posthuma hiltjo@codemadness.org commit 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). 1c7b96de5570bc1219c6d2378ff0d055a20ae591 2015-02-06T14:10:34Z 2015-02-06T15:16:24Z dmesg: fix usage and code-style Hiltjo Posthuma hiltjo@codemadness.org commit 1c7b96de5570bc1219c6d2378ff0d055a20ae591 parent 4855f188c129740840a11f7b74f23739eaa69b06 Author: Hiltjo Posthuma <hiltjo@codemadness.org> Date: Fri, 6 Feb 2015 15:10:34 +0100 dmesg: fix usage and code-style 4855f188c129740840a11f7b74f23739eaa69b06 2015-02-02T18:58:45Z 2015-02-06T15:16:24Z fsfreeze: fix usage line, either -f or -u Hiltjo Posthuma hiltjo@codemadness.org commit 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 96c15e765b083556aa3b46ecabb7264ec96a40f1 2015-02-02T18:58:00Z 2015-02-06T15:16:23Z vtallow, who: usage using argv0 Hiltjo Posthuma hiltjo@codemadness.org commit 96c15e765b083556aa3b46ecabb7264ec96a40f1 parent c7f472f468135f5294b3a51ccf1fdd162aa3653b Author: Hiltjo Posthuma <hiltjo@codemadness.org> Date: Mon, 2 Feb 2015 19:58:00 +0100 vtallow, who: usage using argv0 c7f472f468135f5294b3a51ccf1fdd162aa3653b 2015-02-02T18:56:59Z 2015-02-06T15:16:23Z dd: code-style, linewrap Hiltjo Posthuma hiltjo@codemadness.org commit c7f472f468135f5294b3a51ccf1fdd162aa3653b parent f0cfd58e932e01a7aad5d923aa4e558a02ff404e Author: Hiltjo Posthuma <hiltjo@codemadness.org> Date: Mon, 2 Feb 2015 19:56:59 +0100 dd: code-style, linewrap f0cfd58e932e01a7aad5d923aa4e558a02ff404e 2015-02-02T18:56:17Z 2015-02-06T15:16:23Z chvt: usage using argv0 Hiltjo Posthuma hiltjo@codemadness.org commit f0cfd58e932e01a7aad5d923aa4e558a02ff404e parent a46944add9146303500834b2c5d336694bd04a72 Author: Hiltjo Posthuma <hiltjo@codemadness.org> Date: Mon, 2 Feb 2015 19:56:17 +0100 chvt: usage using argv0 a46944add9146303500834b2c5d336694bd04a72 2015-02-02T18:54:00Z 2015-02-06T15:16:23Z dd.1: fix Hiltjo Posthuma hiltjo@codemadness.org commit a46944add9146303500834b2c5d336694bd04a72 parent 363ac4676685a3e562656a0e5f16e6a5a02e0490 Author: Hiltjo Posthuma <hiltjo@codemadness.org> Date: Mon, 2 Feb 2015 19:54:00 +0100 dd.1: fix 363ac4676685a3e562656a0e5f16e6a5a02e0490 2015-02-02T17:46:18Z 2015-02-06T15:16:23Z Makefile: make man pages with ubase VERSION Hiltjo Posthuma hiltjo@codemadness.org commit 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 544779a7b87dd38c9a1012614e22df987bf64f82 2015-02-02T17:34:26Z 2015-02-06T15:16:23Z doc: convert man pages to mandoc, fix some typos in the process Hiltjo Posthuma hiltjo@codemadness.org commit 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 6253da55c13be52a7f6cf2f038a051b397ca208f 2015-02-03T11:31:47Z 2015-02-03T11:56:06Z support llvm-ar Eon S. Jeon esjeon@hyunmu.am commit 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. 8fe02392edbb05213e114ded8e371fd7dcbe94a7 2015-02-02T22:32:03Z 2015-02-02T22:32:56Z dd: Only sync once sin sin@2f30.org commit 8fe02392edbb05213e114ded8e371fd7dcbe94a7 parent 1c2006fd2ca96237e321cd6a588ec13d12f195c2 Author: sin <sin@2f30.org> Date: Mon, 2 Feb 2015 22:32:03 +0000 dd: Only sync once 1c2006fd2ca96237e321cd6a588ec13d12f195c2 2015-01-26T19:25:54Z 2015-01-26T19:26:22Z Add Risto to LICENSE sin sin@2f30.org commit 1c2006fd2ca96237e321cd6a588ec13d12f195c2 parent ab4f93cf47f423da2399cbe35cbc6c109e5e1825 Author: sin <sin@2f30.org> Date: Mon, 26 Jan 2015 19:25:54 +0000 Add Risto to LICENSE ab4f93cf47f423da2399cbe35cbc6c109e5e1825 2015-01-26T18:53:14Z 2015-01-26T19:26:22Z Fix df hanging when statvfs() fails. Risto Salminen ripejcp@gmail.com commit 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. f701698297ec1d1230caaa9403362c3a2b95f5ed 2015-01-16T16:19:29Z 2015-01-16T16:20:16Z Don't do a blocking open in ttytostr() sin sin@2f30.org commit 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() a7a561ef008ea0842b54713434d5f3fd79e8ccec 2015-01-16T16:06:42Z 2015-01-16T16:10:38Z Handle cleanup properly in ttytostr() sin sin@2f30.org commit a7a561ef008ea0842b54713434d5f3fd79e8ccec parent 8a95422ff14aed8c8cd7cfad51913db90493a50c Author: sin <sin@2f30.org> Date: Fri, 16 Jan 2015 16:06:42 +0000 Handle cleanup properly in ttytostr() 8a95422ff14aed8c8cd7cfad51913db90493a50c 2015-01-16T16:02:25Z 2015-01-16T16:10:37Z Check if the ttymaj/ttymin match is actually a tty sin sin@2f30.org commit 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 a5c30abf8f1ac7a51a733544249b70b7ce90f1e2 2015-01-16T15:54:15Z 2015-01-16T15:55:07Z Use TTY_NAME_MAX instead of PATH_MAX sin sin@2f30.org commit 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 d76319f838dfb42c13c099012e72ca11d37d7178 2015-01-16T15:32:55Z 2015-01-16T15:55:07Z Properly match (ttymaj, ttymin) pairs to tty names in /dev sin sin@2f30.org commit 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. 2a0deb76009631af15b1dd7b435392bf2511b319 2014-12-31T22:01:58Z 2014-12-31T22:02:29Z Update LICENSE sin sin@2f30.org commit 2a0deb76009631af15b1dd7b435392bf2511b319 parent 084d375a7da8a3a65603c721f1bf004998b61a06 Author: sin <sin@2f30.org> Date: Wed, 31 Dec 2014 22:01:58 +0000 Update LICENSE 084d375a7da8a3a65603c721f1bf004998b61a06 2014-12-23T18:10:27Z 2014-12-23T18:10:54Z Update LICENSE file just like for sbase sin sin@2f30.org commit 084d375a7da8a3a65603c721f1bf004998b61a06 parent 42db5e13d01486fb16e690fd7e3b1d9d7777cd83 Author: sin <sin@2f30.org> Date: Tue, 23 Dec 2014 18:10:27 +0000 Update LICENSE file just like for sbase 42db5e13d01486fb16e690fd7e3b1d9d7777cd83 2014-12-05T19:06:22Z 2014-12-05T19:06:40Z Rename to unlock/lock as opposed to enable/disable sin sin@2f30.org commit 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 b0b8579eb3c4add4f02b88b2332bd92ba788d3bd 2014-12-05T15:41:13Z 2014-12-05T15:41:13Z Add vtallow.1 sin sin@2f30.org commit b0b8579eb3c4add4f02b88b2332bd92ba788d3bd parent 4269d523e2c5cc65c89e5340a55febe72c3d3f49 Author: sin <sin@2f30.org> Date: Fri, 5 Dec 2014 15:41:13 +0000 Add vtallow.1 4269d523e2c5cc65c89e5340a55febe72c3d3f49 2014-12-05T15:04:37Z 2014-12-05T15:16:07Z Add vtallow(1) to enable or disable VT switch sin sin@2f30.org commit 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 74c0abb6a2f9b8cac0653f1b96646aaf74b91a68 2014-11-30T14:12:40Z 2014-11-30T14:12:52Z Use -D_XOPEN_SOURCE=700 sin sin@2f30.org commit 74c0abb6a2f9b8cac0653f1b96646aaf74b91a68 parent cee1a0170d17f6f9bbddcaa97a30dd7fa4f0387f Author: sin <sin@2f30.org> Date: Sun, 30 Nov 2014 14:12:40 +0000 Use -D_XOPEN_SOURCE=700 cee1a0170d17f6f9bbddcaa97a30dd7fa4f0387f 2014-11-30T14:08:20Z 2014-11-30T14:08:42Z watch: If period is negative default to 0.1s sin sin@2f30.org commit 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 703e18185c38b869d8f001241aa6b33c832ff5dc 2014-11-30T14:03:25Z 2014-11-30T14:05:44Z Update watch(1) to handle more accurate intervals sin sin@2f30.org commit 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 4cb108f557d6c34f22166430f853e64335e94461 2014-11-30T13:28:01Z 2014-11-30T13:28:26Z No need for dmesg_show() to have an fd sin sin@2f30.org commit 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 10d6bf2f4d73f2712a058327885aca19a44cee02 2014-11-30T13:12:15Z 2014-11-30T13:12:33Z Stop using *_FILENO sin sin@2f30.org commit 10d6bf2f4d73f2712a058327885aca19a44cee02 parent 2d45a04b92df641158ca400873a522fede1d9a01 Author: sin <sin@2f30.org> Date: Sun, 30 Nov 2014 13:12:15 +0000 Stop using *_FILENO 2d45a04b92df641158ca400873a522fede1d9a01 2014-11-30T13:04:47Z 2014-11-30T13:05:24Z Check if 0, 1, 2 are valid tty file descriptors sin sin@2f30.org commit 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