source:
npl/system/klibc/patches/mount-implement-o-defaults.patch
@
40bade7
Last change on this file since 40bade7 was c5c522c, checked in by , 8 years ago | |
---|---|
|
|
File size: 778 bytes |
-
usr/utils/mount_opts.c
From: Ben Hutchings <ben@decadent.org.uk> Date: Sat, 4 Oct 2014 16:32:39 +0100 Subject: mount: Implement -o defaults Bug-Debian: https://bugs.debian.org/763049 Forwarded: http://www.zytor.com/pipermail/klibc/2016-January/003887.html This is needed to support mounting non-root filesystems in initramfs-tools. Signed-off-by: Ben Hutchings <ben@decadent.org.uk> ---
a b parse_mount_options(char *arg, unsigned 89 89 break; 90 90 } 91 91 92 if (res != 0 && s[0]) 93 add_extra_option(extra, opt); 92 if (res != 0 && s[0]) { 93 if (!strcmp(opt, "defaults")) 94 rwflag &= ~(MS_RDONLY|MS_NOSUID|MS_NODEV| 95 MS_NOEXEC|MS_SYNCHRONOUS); 96 else 97 add_extra_option(extra, opt); 98 } 94 99 } 95 100 96 101 return rwflag;
Note: See TracBrowser
for help on using the repository browser.