#define DEFAULT_FILESYS DEFAULT_NONE
#define DEFAULT_USER user /* this is the user who started sms. */
#define NOBODY "\\[nobody\\]"
+#define OLDNOBODY "[nobody]"
/* Function Name: GetDefaultUserQuota
sprintf(temp_buf, "New quota for filesystem %s (in KB)", info[Q_FILESYS]);
GetValueFromUser(temp_buf, &info[Q_QUOTA]);
+ if (!strcmp(info[Q_LOGIN], OLDNOBODY)) {
+ free(info[Q_LOGIN]);
+ info[Q_LOGIN] = strsave(NOBODY);
+ }
if (status = do_sms_query("update_nfs_quota", 3, info,
Scream, (char *) NULL) != SMS_SUCCESS) {