escape it.
#define GROUP 2
#define ALIAS 3
-#define NO_MACHINE ("\\[NONE\\]") /* C will remove one of the /'s here,
- * and the other quotes the [ for
- * ingres' regexp facility. */
+#define NO_MACHINE ("[NONE]")
#define NO_MACHINE_BAD ("[NONE]")
#define DEFAULT_TYPE ("AFS")
free(info[FS_MACHINE]);
info[FS_MACHINE] = Strsave(NO_MACHINE);
} else {
- if (!strcmp(info[FS_MACHINE], NO_MACHINE_BAD)) {
- free(info[FS_MACHINE]);
- info[FS_MACHINE] = Strsave(NO_MACHINE);
- }
if (!strcasecmp(info[FS_TYPE], "AFS")) {
if (!name || newdefaults) {
free(info[FS_MACHINE]);
info[PCAP_SPOOL_HOST] = Strsave(DEFAULT_MACHINE);
info[PCAP_SPOOL_DIR] = Strsave(spool_dir);
info[PCAP_RPRINTER] = Strsave(name);
- info[PCAP_QSERVER] = Strsave("\\[NONE\\]");
+ info[PCAP_QSERVER] = Strsave("[NONE]");
info[PCAP_AUTH] = Strsave("1");
info[PCAP_PRICE] = Strsave("10");
info[PCAP_COMMENTS] = Strsave("");
if (GetValueFromUser("Remote Printer Name", &info[PCAP_RPRINTER]) ==
SUB_ERROR)
return(NULL);
- if (!strcmp(info[PCAP_QSERVER], "[NONE]")) {
- free(info[PCAP_QSERVER]);
- info[PCAP_QSERVER] = strsave("\\[NONE\\]");
- }
if (GetValueFromUser("Quotaserver for this printer", &info[PCAP_QSERVER]) ==
SUB_ERROR)
return(NULL);
#define DEFAULT_FILESYS DEFAULT_NONE
#define DEFAULT_USER user /* this is the user who started moira. */
-#define NOBODY "\\[nobody\\]"
+#define NOBODY "[nobody]"
#define DEFAULT_QTYPE "USER"
Put_message("Please use a non-empty name.");
else if (strchr(s, ' '))
Put_message("You cannot use space (' ') in this name.");
- else if (strchr(s, '*') || strchr(s, '?') || strchr(s, '['))
+ else if (strchr(s, '*') || strchr(s, '?'))
Put_message("Wildcards not accepted here.");
else
return TRUE;