Index: attrib.c =================================================================== --- attrib.c (revision 6342) +++ attrib.c (revision 6343) @@ -44,6 +44,9 @@ { int i; + if ((name == NULL) || (*name == '\0')) + return -1; + /* If we're allowed to replace an existing attribute, see if we can. */ if (replace) {