Changeset 2238

Dec 14, 2012, 3:58:16 PM (6 years ago)

samba3: Don't pass NULL to the realpath function.

The uClibc version or realpath doesn't handle NULL very well, but
crashes with a segfault instead.

Normally, the samba configure process handles details like these, but
our build process uses a fixed configuration instead of autodetecting
things. In this fixed configuration, it was specified that realpath
could handle NULL, while it really could not.

This commit updates the Samba configuration to not pass NULL into

When wide links was disabled in r2236, samba would start doing a
realpath call on every share root when starting a connection.
Effectively, this meant that samba worker processes would segfault as
soon as a samba mount was attempted.

Looking at the code, it seems that realpath was also used during some
file copy operations, so perhaps this commit also improves Samba

References: #1049

1 added

Note: See TracChangeset for help on using the changeset viewer.