138
139
* for symlinks owned by root. NEVER, NEVER, make exceptions for symlinks
139
140
* owned by a non-root user. This would open a security hole when
140
141
* delivering mail to a world-writable mailbox directory.
142
148
else if (lstat(path, &lstat_st) < 0) {
143
149
vstring_sprintf(why, "file status changed unexpectedly: %m");
145
151
} else if (S_ISLNK(lstat_st.st_mode)) {
148
165
vstring_sprintf(why, "file is a symbolic link");
150
167
} else if (fstat_st->st_dev != lstat_st.st_dev