chiark / gitweb /
fstab-generator: avoid mangling of non-path mount source and dest
authorKay Sievers <kay@vrfy.org>
Mon, 4 Jun 2012 10:52:14 +0000 (12:52 +0200)
committerKay Sievers <kay@vrfy.org>
Mon, 4 Jun 2012 10:52:14 +0000 (12:52 +0200)
commit2b71016a3c3d4c088e8edd170fe6eb8431fd71fa
treee54503756788b80891b5a2a85ddc671e29dd758e
parentae5b21eaba2e716034b852c00fc68f98392a2eb7
fstab-generator: avoid mangling of non-path mount source and dest

This can invalidate otherwise valid source paths with trailing slashes,
such as "host:/" in the case of a network mount.

Based on a patch from Dave Reisner <dreisner@archlinux.org>, which
removed the slash mangling entirely.

Changed it to match on the leading slash to exclude non-path values.
src/fstab-generator/fstab-generator.c