X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=lib%2Fmodechange.c;h=52c5debca3a607c191990bca3db086885c4d0383;hb=f84215faa43d2933011459dd42ba518df63e34c4;hp=c7a2cb346ed0612c7bb207912853b9e1b86c50f7;hpb=8b03458ebe93a6e1c86c3a468aa3f2eee01e3c4c;p=gnulib.git diff --git a/lib/modechange.c b/lib/modechange.c index c7a2cb346..52c5debca 100644 --- a/lib/modechange.c +++ b/lib/modechange.c @@ -15,7 +15,7 @@ You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, - Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ + Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ /* Written by David MacKenzie */ @@ -26,7 +26,7 @@ changing the mode of many files, this probably results in a performance gain. */ -#if HAVE_CONFIG_H +#ifdef HAVE_CONFIG_H # include #endif @@ -124,6 +124,9 @@ mode_compile (char const *mode_string) } while ('0' <= *mode_string && *mode_string < '8'); + if (*mode_string) + return NULL; + /* Help the compiler optimize the usual case where mode_t uses the traditional octal representation. */ mode = ((S_ISUID == SUID && S_ISGID == SGID && S_ISVTX == SVTX