On Mon, Jan 31, 2011 at 10:50, Thomas Bellman <[email protected]> wrote:
> James Turnbull wrote:
>
>> According to
>>
>> http://pubs.opengroup.org/onlinepubs/009695399/basedefs/xbd_chap03.html#tag_03_266:
>>
>> "Multiple successive slashes are considered to be the same as one
>> slash.", so '//tmp/xxx' is a valid POSIX pathname.
>
> You should probably read section 3.2 then as well:
[...]
> Posix has this rule to accomodate DomainOS, which was a Unix-
> like OS from Apollo, where paths on the form "//foo/bar/gazonk"
> meant the file "/bar/gazonk" on the machine named "foo". You may
> recognize this format from URLs, or MS Windows SMB paths (with
> backslashes instead of forward slashes).
Hah. You pipped me to the pedantic post, as I was working on this.
> You should however not take this as me thinking the change is bad.
> I actually think it is quite reasonable to allow such paths in
> file resources. But maybe the commit message could be better. :-)
I was going to drop this in because it behaves correctly as far as end
users are concerned; I am going to additionally drop in a test to
verify that we preserve the double-slash at the start of the path.
(Currently pending, since I don't want to audit the entire codebase
yet.)
Now available in 2.6.next, along with the appropriate tests.
Thanks,
Daniel
--
⎋ Puppet Labs Developer – http://puppetlabs.com
✉ Daniel Pittman <[email protected]>
✆ Contact me via gtalk, email, or phone: +1 (877) 575-9775
♲ Made with 100 percent post-consumer electrons
--
You received this message because you are subscribed to the Google Groups
"Puppet Developers" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/puppet-dev?hl=en.