[MERGE][bug #297831] don't call chdir('')

John Arbash Meinel john at arbash-meinel.com
Wed Nov 19 17:02:10 GMT 2008


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

It seems that on Sun OS calling chdir with an empty path returns an
error EADDR, I guess.

Anyway, this patch just checks that we actually have a path being passed
in before calling chdir. If we prefer, I can change the check to "if
len(path) > 0" but it didn't seem like a big deal either way.

John
=:->
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (Cygwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkkkRpIACgkQJdeBCYSNAANNXACfR92kKCPpmEm71wq8swgXY3nn
eSgAoJDFPdLW6eSmFbPLmCrCwQYkDK4h
=vgGa
-----END PGP SIGNATURE-----
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: chdir_empty.patch
Url: https://lists.ubuntu.com/archives/bazaar/attachments/20081119/4af863f0/attachment.diff 


More information about the bazaar mailing list