[systemd-devel] [PATCH] fstab-generator: avoid mangling mount source and dest
Kay Sievers
kay at vrfy.org
Mon Jun 4 06:25:29 PDT 2012
On Mon, Jun 4, 2012 at 2:04 PM, Dave Reisner <d at falconindy.com> wrote:
> On Mon, Jun 04, 2012 at 12:57:47PM +0200, Kay Sievers wrote:
>> On Sun, Jun 3, 2012 at 4:18 AM, Dave Reisner <dreisner at archlinux.org> wrote:
>> > This can invalidate otherwise valid source paths with trailing slashes,
>> > such as "host:/" in the case of a network mount. We don't really have
>> > any business touching these anyway, since we'll just pass this to
>> > /bin/mount, which sanitizes the paths for us.
>>
>> Changed it to use:
>> path_is_absolute()
>> instead of:
>> is_path(),
>> so that we still sanitize the input we might match against.
>>
>> Let me know, if you think that could still cause any problems?
>>
>> Thanks,
>> Kay
>
> Yes, this will still break CIFS shares.
Take II, please check. :)
Thanks,
Kay
More information about the systemd-devel
mailing list