Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

lpadmin and '-U' option #1702

Closed
michaelrsweet opened this issue May 17, 2006 · 2 comments
Closed

lpadmin and '-U' option #1702

michaelrsweet opened this issue May 17, 2006 · 2 comments
Milestone

Comments

@michaelrsweet
Copy link
Collaborator

Version: 1.2.0
CUPS.org User: twaugh.redhat

The lpadmin man page describes a '-U' option, but the binary does not accept it:

$ /usr/sbin/lpadmin -U root -p deskjet -u allow:all
lpadmin: Unknown option 'U'!

@michaelrsweet
Copy link
Collaborator Author

CUPS.org User: mike

Fixed in Subversion repository.

@michaelrsweet
Copy link
Collaborator Author

"str1702.patch":

Index: lpadmin.c

--- lpadmin.c (revision 5543)
+++ lpadmin.c (working copy)
@@ -466,6 +466,25 @@
return (1);
break;

  •    case 'U' : /\* Username */
    
  •   if (argv[i][2] != '\0')
    
  •     cupsSetUser(argv[i] + 2);
    
  •   else
    
  •   {
    
  •     i ++;
    
  •     if (i >= argc)
    
  •     {
    
  •       _cupsLangPrintf(stderr,
    
  •                   _("%s: Error - expected username after "
    
  •             "\'-U\' option!\n"),
    
  •               argv[0]);
    
  •       return (1);
    
  •     }
    
  •          cupsSetUser(argv[i]);
    
  •   }
    
  •   break;
    
  •  case 'u' : /\* Allow/deny users */
    if (argv[i][2])
      val = argv[i] + 2;
    

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant