summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorOlivier Brunel2016-01-09 17:54:55 +0100
committerOlivier Brunel2016-01-10 15:10:35 +0100
commite59e73c6d6e54628775e48c8075cdd90fdb3a2a6 (patch)
tree3114b27d05a614398f7c8500f3887cf8ccc64d50
parentb4e7f85866f9f3b34c97f9225136945e9434bc37 (diff)
downloadaur-e59e73c6d6e54628775e48c8075cdd90fdb3a2a6.tar.gz
xlsh-without-x: Add patch to handle perms on tty node
Signed-off-by: Olivier Brunel <jjk@jjacky.com>
-rw-r--r--.SRCINFO26
-rw-r--r--0001-Add-compilation-option-for-login-completion.patch4
-rw-r--r--0002-Remove-X-support.patch4
-rw-r--r--0003-config.h-Tweak-prompt.patch4
-rw-r--r--0004-Makefile-Switch-prefix-to-usr.patch4
-rw-r--r--0005-Don-t-block-signals-as-it-caused-issues.patch4
-rw-r--r--0006-Set-environment-from-PAM.patch4
-rw-r--r--0007-Add-.gitignore.patch4
-rw-r--r--0008-Makefile-Install-in-prefix-bin-not-prefix-sbin.patch4
-rw-r--r--0009-config-Use-better-commands-to-reboot-halt.patch4
-rw-r--r--0010-Replace-command-shutdown-with-halt-poweroff.patch4
-rw-r--r--0011-Handle-perms-on-tty-node.patch199
-rw-r--r--PKGBUILD25
13 files changed, 248 insertions, 42 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 23186c1d766..a9fab0e731a 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,7 +1,9 @@
+# Generated by mksrcinfo v8
+# Sun Jan 10 14:10:35 UTC 2016
pkgbase = xlsh-without-x
pkgdesc = eXtended Login Shell - fast, minimalistic login replacement (without X support)
pkgver = 0.2.2
- pkgrel = 4
+ pkgrel = 5
url = https://github.com/Nadrin/xlsh/wiki
arch = i686
arch = x86_64
@@ -20,17 +22,19 @@ pkgbase = xlsh-without-x
source = 0008-Makefile-Install-in-prefix-bin-not-prefix-sbin.patch
source = 0009-config-Use-better-commands-to-reboot-halt.patch
source = 0010-Replace-command-shutdown-with-halt-poweroff.patch
+ source = 0011-Handle-perms-on-tty-node.patch
sha256sums = ffc8c31503d252d104f98259842a8da5163862870bfdfe0a07ffc0833b6a1102
- sha256sums = 7ff3d8a1c3489229aac8d5c1447a9d5781b00682098f703b70a61e5fb38d7d5b
- sha256sums = ae8bb3edb173f41572f77e64b24485cab8805ac92bdfe4f6989c2bce0c1ce021
- sha256sums = da5793bc553731e5c65a6583d086af4b5b86b1df5d03dac9d0b48d10cb506d0c
- sha256sums = 13df8bdf21d3ae7e9b7efc5d800ae2c4e596c9ff2fae6326d0b2fdcb66b2b89c
- sha256sums = 102b5123fd60a8331c856a4fc8b50d3332455cb4f4e38b962eb6057345fa4f8e
- sha256sums = 069dee189df6de6f8a3459a42ad30afb14ecfb306e31d59283f99fd48ae68298
- sha256sums = 049601322afdcc621c9c340bcb5376cfc54f624391dffa9829d25b5b71181251
- sha256sums = a46ac173fb130bd88ba706255bb0ff15815cdb770196a01a3fb433340ac742f3
- sha256sums = 9684b8e822bfaba8e7213bafea89929a6c2834a43fb0b3223f07b6e8a71b8f8a
- sha256sums = 4c8c5304a649bcb1d1d522614a0ac6fdc468f69ed00c02e002b620d9076165b7
+ sha256sums = 7b5f36f2a1f072d095c4aae3bd533502ef0d994003fab3771d02473c595a725c
+ sha256sums = 1b08ab4067e97458705fc2157e49de9725b4ae6a5297372d47f78f0ef734e5c4
+ sha256sums = ad6ea1b336b8e90d1d1a9bc00e357d2ea4e371ee73bfabdcb479950bfe250869
+ sha256sums = cfa94b26198615fd9d4f6c1ac4a6a76e5fd05c5d15cc9a5388e4ac5fb0f85347
+ sha256sums = 275e1d144ec0d3acb8e45d192d43bf7c007a458680fe623f22b1cfc4a51a5ef2
+ sha256sums = 04cb80f482b6c21f694887aefd7d2e0fe7287c7840a7d6668fd2953a9e0258bd
+ sha256sums = b6d1c18f3ce496ffc80a80960c8353b7336348faf5fd745a7934fc2a573e422e
+ sha256sums = 3927c72453cf456d6bb2c7afedef07949c65ceecedae8193519bb4ce9f77f9d5
+ sha256sums = fbfca8ddfc83763b2a20e2f0b7d1d673de74562466ef5faabd0ddc20dffcde39
+ sha256sums = 21971b08b79229500dd2d01ed4387f9b2465580411b8d088911d501107e27acf
+ sha256sums = e6e8bf924d260a5dd6caa285362b8b7271973e2fee58ea5fa980a7edf111b4e4
pkgname = xlsh-without-x
diff --git a/0001-Add-compilation-option-for-login-completion.patch b/0001-Add-compilation-option-for-login-completion.patch
index eb5a55c475d..5fb01512187 100644
--- a/0001-Add-compilation-option-for-login-completion.patch
+++ b/0001-Add-compilation-option-for-login-completion.patch
@@ -1,7 +1,7 @@
From 1ee25d8e41581ac178545bde6dfa00229e3f809a Mon Sep 17 00:00:00 2001
From: Olivier Brunel <jjk@jjacky.com>
Date: Tue, 15 Nov 2011 15:02:59 +0100
-Subject: [PATCH 01/10] Add compilation option for login completion
+Subject: [PATCH 01/11] Add compilation option for login completion
Signed-off-by: Olivier Brunel <jjk@jjacky.com>
---
@@ -55,5 +55,5 @@ index b8181e2..b22b4e4 100644
int xlsh_cmd_loop(void)
--
-2.6.1
+2.7.0
diff --git a/0002-Remove-X-support.patch b/0002-Remove-X-support.patch
index d41c3b83243..3f52adfcb53 100644
--- a/0002-Remove-X-support.patch
+++ b/0002-Remove-X-support.patch
@@ -1,7 +1,7 @@
From 45ea617f995180bf704a760709efa86401b9394a Mon Sep 17 00:00:00 2001
From: Olivier Brunel <jjk@jjacky.com>
Date: Tue, 15 Nov 2011 15:42:46 +0100
-Subject: [PATCH 02/10] Remove X support
+Subject: [PATCH 02/11] Remove X support
Signed-off-by: Olivier Brunel <jjk@jjacky.com>
---
@@ -595,5 +595,5 @@ index 3c79581..0000000
- return retval;
-}
--
-2.6.1
+2.7.0
diff --git a/0003-config.h-Tweak-prompt.patch b/0003-config.h-Tweak-prompt.patch
index 70845c4eeb7..8133bff63de 100644
--- a/0003-config.h-Tweak-prompt.patch
+++ b/0003-config.h-Tweak-prompt.patch
@@ -1,7 +1,7 @@
From 46d3104ffba1ffc66e085597c25475cd0ff0cb9c Mon Sep 17 00:00:00 2001
From: Olivier Brunel <jjk@jjacky.com>
Date: Sun, 16 Nov 2014 18:02:26 +0100
-Subject: [PATCH 03/10] config.h: Tweak prompt
+Subject: [PATCH 03/11] config.h: Tweak prompt
Signed-off-by: Olivier Brunel <jjk@jjacky.com>
---
@@ -22,5 +22,5 @@ index ec20fc5..9e00c4a 100644
#define XLSH_SHELLS "/etc/shells"
#define XLSH_ISSUE "/etc/issue"
--
-2.6.1
+2.7.0
diff --git a/0004-Makefile-Switch-prefix-to-usr.patch b/0004-Makefile-Switch-prefix-to-usr.patch
index babf25d99ae..674ce8059fb 100644
--- a/0004-Makefile-Switch-prefix-to-usr.patch
+++ b/0004-Makefile-Switch-prefix-to-usr.patch
@@ -1,7 +1,7 @@
From 00915458dd640b9d3cf538ae48f308d9ff65448e Mon Sep 17 00:00:00 2001
From: Olivier Brunel <jjk@jjacky.com>
Date: Sun, 16 Nov 2014 18:02:38 +0100
-Subject: [PATCH 04/10] Makefile: Switch prefix to /usr
+Subject: [PATCH 04/11] Makefile: Switch prefix to /usr
Signed-off-by: Olivier Brunel <jjk@jjacky.com>
---
@@ -22,5 +22,5 @@ index 8fae9a2..f4fd67c 100644
exec_prefix = $(prefix)
sbindir = $(exec_prefix)/sbin
--
-2.6.1
+2.7.0
diff --git a/0005-Don-t-block-signals-as-it-caused-issues.patch b/0005-Don-t-block-signals-as-it-caused-issues.patch
index d601de9e1ec..dd4841d055d 100644
--- a/0005-Don-t-block-signals-as-it-caused-issues.patch
+++ b/0005-Don-t-block-signals-as-it-caused-issues.patch
@@ -1,7 +1,7 @@
From b3f9bdb405acef29cefd4b3f3d02a1903ba80d09 Mon Sep 17 00:00:00 2001
From: Olivier Brunel <jjk@jjacky.com>
Date: Sun, 16 Nov 2014 18:09:28 +0100
-Subject: [PATCH 05/10] Don't block signals, as it caused issues
+Subject: [PATCH 05/11] Don't block signals, as it caused issues
Blocking signals doesn't seem to be required (xlsh will be restarted
automatically anyways, just as when using command exit (login doesn't
@@ -92,5 +92,5 @@ index ab20703..e4fbf7c 100644
xlsh_config_init(opt_exec);
xlsh_sys_issue(xlsh_config[XLSH_ID_ISSUE].value);
--
-2.6.1
+2.7.0
diff --git a/0006-Set-environment-from-PAM.patch b/0006-Set-environment-from-PAM.patch
index d70a9d860cc..235de3f2a13 100644
--- a/0006-Set-environment-from-PAM.patch
+++ b/0006-Set-environment-from-PAM.patch
@@ -1,7 +1,7 @@
From bdfd5079433180aac28b68be796d52c5bfbd7c8c Mon Sep 17 00:00:00 2001
From: Olivier Brunel <jjk@jjacky.com>
Date: Sun, 16 Nov 2014 18:13:27 +0100
-Subject: [PATCH 06/10] Set environment from PAM
+Subject: [PATCH 06/11] Set environment from PAM
Signed-off-by: Olivier Brunel <jjk@jjacky.com>
---
@@ -88,5 +88,5 @@ index e4fbf7c..3fc1711 100644
}
else if(proc_shell == -1)
--
-2.6.1
+2.7.0
diff --git a/0007-Add-.gitignore.patch b/0007-Add-.gitignore.patch
index 134584eeda1..384a341975a 100644
--- a/0007-Add-.gitignore.patch
+++ b/0007-Add-.gitignore.patch
@@ -1,7 +1,7 @@
From 9fcf959b7b3634ea7496e7cd141a34db449550d8 Mon Sep 17 00:00:00 2001
From: Olivier Brunel <jjk@jjacky.com>
Date: Sun, 16 Nov 2014 18:18:54 +0100
-Subject: [PATCH 07/10] Add .gitignore
+Subject: [PATCH 07/11] Add .gitignore
Signed-off-by: Olivier Brunel <jjk@jjacky.com>
---
@@ -21,5 +21,5 @@ index 0000000..542369b
+*.swp
+/xlsh
--
-2.6.1
+2.7.0
diff --git a/0008-Makefile-Install-in-prefix-bin-not-prefix-sbin.patch b/0008-Makefile-Install-in-prefix-bin-not-prefix-sbin.patch
index f1dfe6453a8..c737142ca2b 100644
--- a/0008-Makefile-Install-in-prefix-bin-not-prefix-sbin.patch
+++ b/0008-Makefile-Install-in-prefix-bin-not-prefix-sbin.patch
@@ -1,7 +1,7 @@
From 99969e2f933da2131fc21db94d2792d90072f4b8 Mon Sep 17 00:00:00 2001
From: Olivier Brunel <jjk@jjacky.com>
Date: Sun, 16 Nov 2014 18:23:42 +0100
-Subject: [PATCH 08/10] Makefile: Install in $prefix/bin not $prefix/sbin
+Subject: [PATCH 08/11] Makefile: Install in $prefix/bin not $prefix/sbin
Signed-off-by: Olivier Brunel <jjk@jjacky.com>
---
@@ -43,5 +43,5 @@ index f4fd67c..12364ef 100644
clean:
rm -f $(PROGRAMS)
--
-2.6.1
+2.7.0
diff --git a/0009-config-Use-better-commands-to-reboot-halt.patch b/0009-config-Use-better-commands-to-reboot-halt.patch
index 64d1c15def9..3760ccfe68b 100644
--- a/0009-config-Use-better-commands-to-reboot-halt.patch
+++ b/0009-config-Use-better-commands-to-reboot-halt.patch
@@ -1,7 +1,7 @@
From aacb57c775088b29f2331dba835c7d5ea2ec3343 Mon Sep 17 00:00:00 2001
From: Olivier Brunel <jjk@jjacky.com>
Date: Wed, 14 Oct 2015 18:49:11 +0200
-Subject: [PATCH 09/10] config: Use "better" commands to reboot/halt
+Subject: [PATCH 09/11] config: Use "better" commands to reboot/halt
Those make more sense, also allows easier use with other init system
that provides those commands. (I especially don't like `shutdown -h` to
@@ -28,5 +28,5 @@ index 9e00c4a..301f09f 100644
#define XLSH_DATEFMT "%Y-%m-%d"
#define XLSH_TIMEFMT "%H:%M"
--
-2.6.1
+2.7.0
diff --git a/0010-Replace-command-shutdown-with-halt-poweroff.patch b/0010-Replace-command-shutdown-with-halt-poweroff.patch
index 2e6196a3f52..ede2f19b695 100644
--- a/0010-Replace-command-shutdown-with-halt-poweroff.patch
+++ b/0010-Replace-command-shutdown-with-halt-poweroff.patch
@@ -1,7 +1,7 @@
From fd7c3159988cb56e2cb703be23e8a4302331f338 Mon Sep 17 00:00:00 2001
From: Olivier Brunel <jjk@jjacky.com>
Date: Sat, 17 Oct 2015 12:53:10 +0200
-Subject: [PATCH 10/10] Replace command "shutdown" with "halt" & "poweroff"
+Subject: [PATCH 10/11] Replace command "shutdown" with "halt" & "poweroff"
Signed-off-by: Olivier Brunel <jjk@jjacky.com>
---
@@ -105,5 +105,5 @@ index 3fc1711..7a3ceb9 100644
xlsh_config_set(&xlsh_config[XLSH_ID_TIMEFMT], NULL);
xlsh_config_set(&xlsh_config[XLSH_ID_DATEFMT], NULL);
--
-2.6.1
+2.7.0
diff --git a/0011-Handle-perms-on-tty-node.patch b/0011-Handle-perms-on-tty-node.patch
new file mode 100644
index 00000000000..b371e694856
--- /dev/null
+++ b/0011-Handle-perms-on-tty-node.patch
@@ -0,0 +1,199 @@
+From 961e835bda6caebf70ee3835b2c166aeab10a258 Mon Sep 17 00:00:00 2001
+From: Olivier Brunel <jjk@jjacky.com>
+Date: Sat, 9 Jan 2016 17:47:57 +0100
+Subject: [PATCH 11/11] Handle perms on tty node
+
+Upon login we take note of current user/group/perms, to restore it on session
+close. Then, we set the user owner, and TTY_GROUP ("tty") as group. If the
+group doesn't exist we chmod 0600, else 0620.
+
+Signed-off-by: Olivier Brunel <jjk@jjacky.com>
+---
+ include/config.h | 2 ++
+ include/xlsh.h | 4 +--
+ src/xlsh.c | 74 +++++++++++++++++++++++++++++++++++++++++++-------------
+ 3 files changed, 61 insertions(+), 19 deletions(-)
+
+diff --git a/include/config.h b/include/config.h
+index 1844bd3..89aabc7 100644
+--- a/include/config.h
++++ b/include/config.h
+@@ -23,6 +23,8 @@
+ #define XLSH_TIMEFMT "%H:%M"
+ #define XLSH_PAM_TTY "login"
+
++#define TTY_GROUP "tty"
++
+ #define XLSH_COMPLETION_LOGIN 0
+ #define XLSH_COMPLETION_SHOWROOT 1
+ #define XLSH_COMPLETION_MINUID 1000
+diff --git a/include/xlsh.h b/include/xlsh.h
+index 0a131db..9108db9 100644
+--- a/include/xlsh.h
++++ b/include/xlsh.h
+@@ -38,10 +38,10 @@ typedef struct xlsh_system_s {
+ struct utsname un;
+ char date[100];
+ char time[100];
+- char ttyname[256];
+- char ttypath[256];
+ char hostname[256];
+ char domainname[256];
++ char *ttyname;
++ char *ttypath;
+ } xlsh_system_t;
+
+ void xlsh_config_init(char* exec_arg);
+diff --git a/src/xlsh.c b/src/xlsh.c
+index 7a3ceb9..b97897c 100644
+--- a/src/xlsh.c
++++ b/src/xlsh.c
+@@ -18,6 +18,7 @@
+ #include <sys/types.h>
+ #include <sys/wait.h>
+ #include <sys/utsname.h>
++#include <sys/stat.h>
+
+ #include <readline/readline.h>
+ #include <readline/history.h>
+@@ -27,6 +28,8 @@
+ #include <libxlsh.h>
+ #include <xlsh.h>
+
++static char tty_name[PATH_MAX];
++
+ // Static data
+ static xlsh_config_item_t xlsh_config[] = {
+ { "XLSH_EXEC", XLSH_EXEC, NULL },
+@@ -237,7 +240,7 @@ int xlsh_session_open(const char* service, const char* user,
+
+ if(pam_start(service, user, &conv, &pam_handle) != PAM_SUCCESS)
+ return XLSH_ERROR;
+- pam_set_item(pam_handle, PAM_TTY, ttyname(0));
++ pam_set_item(pam_handle, PAM_TTY, tty_name);
+
+ if(pam_authenticate(pam_handle, 0) != PAM_SUCCESS) {
+ pam_end(pam_handle, 0);
+@@ -341,8 +344,13 @@ int xlsh_session_exec(pam_handle_t* handle, const char* session, const char* arg
+
+ int xlsh_session_tty(const char* user, const char* shell)
+ {
++ int r = XLSH_EDONE;
+ pam_handle_t* pam_handle;
+ struct passwd* pwinfo;
++ struct group* gr;
++ struct stat st;
++ gid_t gid;
++ mode_t mode;
+ int waitflag;
+
+ char user_shell[PATH_MAX];
+@@ -368,18 +376,52 @@ int xlsh_session_tty(const char* user, const char* shell)
+ return XLSH_ERROR;
+ }
+
++ if(stat(tty_name, &st) < 0) {
++ st.st_uid = 0;
++ st.st_gid = 0;
++ st.st_mode = S_IRUSR | S_IWUSR;
++ }
++
++ gr = getgrnam(TTY_GROUP);
++ if(gr) {
++ gid = gr->gr_gid;
++ mode = S_IRUSR | S_IWUSR | S_IWGRP;
++ } else {
++ gid = pwinfo->pw_gid;
++ mode = S_IRUSR | S_IWUSR;
++ }
++
++ if(chown(tty_name, pwinfo->pw_uid, gid) < 0) {
++ fprintf(stderr, "Unable to chown '%s': %s\n", tty_name, strerror(errno));
++ xlsh_session_close(pam_handle);
++ return XLSH_ERROR;
++ }
++ if(chmod(tty_name, mode) < 0) {
++ fprintf(stderr, "Unable to chmod '%s': %s\n", tty_name, strerror(errno));
++ r = XLSH_ERROR;
++ goto done;
++ }
++
+ sprintf(user_shell_name, "-%s", user_shell);
+ if(xlsh_session_exec(pam_handle, user_shell, user_shell_name) != XLSH_EOK) {
+ fprintf(stderr, "Cannot execute shell process: %s\n", user_shell);
+- xlsh_session_close(pam_handle);
+- return XLSH_ERROR;
++ r = XLSH_ERROR;
++ goto done;
+ }
+
+ waitflag = 0;
+ wait(&waitflag);
+-
++
++done:
++ if(chown(tty_name, st.st_uid, st.st_gid) < 0)
++ fprintf(stderr, "Warning: Failed to restore chown '%s': %s\n",
++ tty_name, strerror(errno));
++ if(chmod(tty_name, st.st_mode) < 0)
++ fprintf(stderr, "Warning: Failed to restore chmod '%s': %s\n",
++ tty_name, strerror(errno));
++
+ xlsh_session_close(pam_handle);
+- return XLSH_EDONE;
++ return r;
+ }
+
+
+@@ -552,23 +594,16 @@ int xlsh_sys_getinfo(xlsh_system_t* sysinfo)
+ {
+ struct tm *tminfo;
+ time_t timeval;
+-
+- char *tty_name;
+- char tty_path[PATH_MAX];
+-
++
+ memset(sysinfo, 0, sizeof(xlsh_system_t));
+ uname(&sysinfo->un);
+ if(gethostname(sysinfo->hostname, sizeof(sysinfo->hostname)) != 0)
+ strcpy(sysinfo->hostname, "localhost");
+ if(getdomainname(sysinfo->domainname, sizeof(sysinfo->domainname)) != 0)
+ strcpy(sysinfo->domainname, "localdomain");
+- if(ttyname_r(0, tty_path, sizeof(tty_path)) != 0)
+- strcpy(tty_path, XLSH_XTTY);
+- strncpy(sysinfo->ttypath, tty_path + 5, sizeof(sysinfo->ttypath));
+-
+- tty_name = tty_path + 5;
+- strncpy(sysinfo->ttyname, tty_name, sizeof(sysinfo->ttyname));
+-
++ sysinfo->ttypath = tty_name;
++ sysinfo->ttyname = tty_name + 5;
++
+ timeval = time(NULL);
+ tminfo = localtime(&timeval);
+ if(tminfo) {
+@@ -614,7 +649,7 @@ int xlsh_sys_issue(const char* issuefile)
+ case 'v': value = sysinfo.un.version; break;
+ case 't': value = sysinfo.time; break;
+ case 'd': value = sysinfo.date; break;
+- case 'l': value = sysinfo.ttypath; break;
++ case 'l': value = sysinfo.ttyname; break;
+ case 'n': value = sysinfo.hostname; break;
+ case 'o': value = sysinfo.domainname; break;
+ default: value = NULL;
+@@ -649,6 +684,11 @@ int main(int argc, char** argv)
+ return EXIT_FAILURE;
+ }
+
++ if(ttyname_r(fileno(stdin), tty_name, sizeof(tty_name)) != 0) {
++ fprintf(stderr, "%s: Unable to get tty name\n", argv[0]);
++ return EXIT_FAILURE;
++ }
++
+ xlsh_config_init(opt_exec);
+ xlsh_sys_issue(xlsh_config[XLSH_ID_ISSUE].value);
+
+--
+2.7.0
+
diff --git a/PKGBUILD b/PKGBUILD
index df795740223..1b817c2721b 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,7 +2,7 @@
# Contributor: MichaƂ Siejak <my_fistname@my_lastname.pl>
pkgname=xlsh-without-x
pkgver=0.2.2
-pkgrel=4
+pkgrel=5
pkgdesc="eXtended Login Shell - fast, minimalistic login replacement (without X support)"
arch=('i686' 'x86_64')
url="https://github.com/Nadrin/xlsh/wiki"
@@ -20,18 +20,20 @@ source=("xlsh-$pkgver.tar.gz::https://github.com/Nadrin/xlsh/tarball/master"
'0008-Makefile-Install-in-prefix-bin-not-prefix-sbin.patch'
'0009-config-Use-better-commands-to-reboot-halt.patch'
'0010-Replace-command-shutdown-with-halt-poweroff.patch'
+ '0011-Handle-perms-on-tty-node.patch'
)
sha256sums=('ffc8c31503d252d104f98259842a8da5163862870bfdfe0a07ffc0833b6a1102'
- '7ff3d8a1c3489229aac8d5c1447a9d5781b00682098f703b70a61e5fb38d7d5b'
- 'ae8bb3edb173f41572f77e64b24485cab8805ac92bdfe4f6989c2bce0c1ce021'
- 'da5793bc553731e5c65a6583d086af4b5b86b1df5d03dac9d0b48d10cb506d0c'
- '13df8bdf21d3ae7e9b7efc5d800ae2c4e596c9ff2fae6326d0b2fdcb66b2b89c'
- '102b5123fd60a8331c856a4fc8b50d3332455cb4f4e38b962eb6057345fa4f8e'
- '069dee189df6de6f8a3459a42ad30afb14ecfb306e31d59283f99fd48ae68298'
- '049601322afdcc621c9c340bcb5376cfc54f624391dffa9829d25b5b71181251'
- 'a46ac173fb130bd88ba706255bb0ff15815cdb770196a01a3fb433340ac742f3'
- '9684b8e822bfaba8e7213bafea89929a6c2834a43fb0b3223f07b6e8a71b8f8a'
- '4c8c5304a649bcb1d1d522614a0ac6fdc468f69ed00c02e002b620d9076165b7')
+ '7b5f36f2a1f072d095c4aae3bd533502ef0d994003fab3771d02473c595a725c'
+ '1b08ab4067e97458705fc2157e49de9725b4ae6a5297372d47f78f0ef734e5c4'
+ 'ad6ea1b336b8e90d1d1a9bc00e357d2ea4e371ee73bfabdcb479950bfe250869'
+ 'cfa94b26198615fd9d4f6c1ac4a6a76e5fd05c5d15cc9a5388e4ac5fb0f85347'
+ '275e1d144ec0d3acb8e45d192d43bf7c007a458680fe623f22b1cfc4a51a5ef2'
+ '04cb80f482b6c21f694887aefd7d2e0fe7287c7840a7d6668fd2953a9e0258bd'
+ 'b6d1c18f3ce496ffc80a80960c8353b7336348faf5fd745a7934fc2a573e422e'
+ '3927c72453cf456d6bb2c7afedef07949c65ceecedae8193519bb4ce9f77f9d5'
+ 'fbfca8ddfc83763b2a20e2f0b7d1d673de74562466ef5faabd0ddc20dffcde39'
+ '21971b08b79229500dd2d01ed4387f9b2465580411b8d088911d501107e27acf'
+ 'e6e8bf924d260a5dd6caa285362b8b7271973e2fee58ea5fa980a7edf111b4e4')
prepare() {
mv Nadrin-xlsh-* xlsh
@@ -47,6 +49,7 @@ prepare() {
patch -p1 -i ../0008-Makefile-Install-in-prefix-bin-not-prefix-sbin.patch
patch -p1 -i ../0009-config-Use-better-commands-to-reboot-halt.patch
patch -p1 -i ../0010-Replace-command-shutdown-with-halt-poweroff.patch
+ patch -p1 -i ../0011-Handle-perms-on-tty-node.patch
}
build() {