]> andersk Git - moira.git/blobdiff - lib/nfsparttype.c
Suppress warning about ownership changes - administrators have been warned.
[moira.git] / lib / nfsparttype.c
index 0eb639766623c6cd6e94a214eb18a5f1dd862279..8d1809410838004ad34c0e1951e10710448837ad 100644 (file)
@@ -14,7 +14,7 @@ static char *rcsid_nfsparttype_c = "$Header$";
 #endif lint
 
 #include <mit-copyright.h>
-#include <sms.h>
+#include <moira.h>
 #include <stdio.h>
 #include <strings.h>
 #include <ctype.h>
@@ -32,12 +32,11 @@ struct pair {
  */
 
 static struct pair fs_names[] = {
-    { SMS_FS_STUDENT, "Student" },
-    { SMS_FS_FACULTY, "Faculty/Project" },
-    { SMS_FS_FACULTY, "Faculty" },
-    { SMS_FS_FACULTY, "Project" },
-    { SMS_FS_STAFF, "Staff" },
-    { SMS_FS_MISC, "Other" },
+    { MR_FS_STUDENT, "Student" },
+    { MR_FS_FACULTY, "Faculty" },
+    { MR_FS_STAFF, "Staff" },
+    { MR_FS_MISC, "Other" },
+    { MR_FS_GROUPQUOTA, "GroupQuota" },
     /* Insert new entries before the 0,0 pair */
     { 0, 0 },
 };
@@ -105,7 +104,7 @@ parse_filesys_type(fs_type_name)
        t = strtrim(temp);      /* nuke leading and trailing whitespace */
 
        for (pp = fs_names; pp->type; pp++) {
-           if (cistrcmp(pp->name, t) == 0) {
+           if (strcasecmp(pp->name, t) == 0) {
                flags |= pp->type;
                break;
            }
This page took 0.151228 seconds and 4 git commands to generate.