Index: systemv/cupsctl.c =================================================================== --- systemv/cupsctl.c (revision 9428) +++ systemv/cupsctl.c (working copy) @@ -3,7 +3,7 @@ * * Scheduler control program for CUPS. * - * Copyright 2007-2010 by Apple Inc. + * Copyright 2007-2011 by Apple Inc. * Copyright 2006-2007 by Easy Software Products. * * These coded instructions, statements, and computer programs are the @@ -141,6 +141,13 @@ usage(argv[i]); } + if (cupsGetOption("Listen", num_settings, settings) || + cupsGetOption("Port", num_settings, settings)) + { + _cupsLangPuts(stderr, _("cupsctl: Cannot set Listen or Port directly.\n")); + return (1); + } + /* * Connect to the server using the defaults... */ Property changes on: systemv/cupsctl.c ___________________________________________________________________ Added: svn:keywords + Id Index: cups/adminutil.c =================================================================== --- cups/adminutil.c (revision 9428) +++ cups/adminutil.c (working copy) @@ -3,7 +3,7 @@ * * Administration utility API definitions for CUPS. * - * Copyright 2007-2010 by Apple Inc. + * Copyright 2007-2011 by Apple Inc. * Copyright 2001-2007 by Easy Software Products. * * These coded instructions, statements, and computer programs are the @@ -2034,6 +2034,8 @@ for (i = num_settings, setting = settings; i > 0; i --, setting ++) if (setting->name[0] != '_' && + strcasecmp(setting->name, "Listen") && + strcasecmp(setting->name, "Port") && !cupsGetOption(setting->name, cupsd_num_settings, cupsd_settings)) { /*