]> andersk Git - moira.git/blobdiff - server/qsupport.qc
fixed name section and tkt file
[moira.git] / server / qsupport.qc
index 1d81896cdb7160ce82797c8311d534785d311887..f7a0aeb494f107f20addc6796c9bc11f7a5b1c3e 100644 (file)
@@ -4,6 +4,8 @@
  *     $Header$
  *
  *     Copyright (C) 1987 by the Massachusetts Institute of Technology
+ *     For copying and distribution information, please see the file
+ *     <mit-copyright.h>.
  *
  */
 
@@ -11,6 +13,7 @@
 static char *rcsid_qsupport_qc = "$Header$";
 #endif lint
 
+#include <mit-copyright.h>
 #include "query.h"
 #include "sms_server.h"
 #include <ctype.h>
@@ -681,7 +684,7 @@ setup_ufil(q, argv)
     if (!strcmp(type, "NFS")) {
        status = check_nfs(mach_id, name, access);
        fid = *(int *)argv[0];
-##     replace nfsquota (phys_id = var_phys_id) where nfsquota.filesys_id = fid
+##     replace nfsquota (phys_id = var_phys_id) where nfsquota.filsys_id = fid
        return(status);
     } else
       return(SMS_SUCCESS);
@@ -888,25 +891,24 @@ set_pobox_modtime(q, argv, cl)
 ##}
 
 
-/* Sets the modtime on a machine record.  The machine name is in argv[0].
- * This routine is different from the generic set_modtime in that the
- * name is uppercased first.
+/* Like set_modtime, but uppercases the name first.
  */
 
-set_mach_modtime(q, argv, cl)
+set_uppercase_modtime(q, argv, cl)
     struct query *q;
     char **argv;
     client *cl;
 ##{
-##  char *host, *entity;
+##  char *name, *entity, *table;
 ##  int who;
 
     entity = cl->entity;
     who = cl->users_id;
+    table = q->rtable;
+    name = argv[0];
 
-    host = argv[0];
-##  repeat replace m (modtime = "now", modby = @who, modwith = @entity)
-##      where m.name = uppercase(@host)
+##  replace table (modtime = "now", modby = who, modwith = entity)
+##      where table.#name = uppercase(name)
     return(SMS_SUCCESS);
 ##}
 
This page took 0.03476 seconds and 4 git commands to generate.