This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH] cygrunsrv: mutual exclusion of -i and -u flags; typo fixes


On Fri, 5 Mar 2004, Corinna Vinschen wrote:

> On Mar  4 19:49, Igor Pechtchanski wrote:
>
> > > I think this relates to the fact that only services logging in with
> > > the local system account can be configured to interact with the
> > > desktop...so it appears that the --user and --interactive flags are
> > > exclusive.
> >
> > Whoops, you're quite right (confirmed on MSDN).  We should actually catch
> > that in cygrunsrv and print out an appropriate error message.  Corinna,
> > should I prepare a patch, or do I need a copyright assignment for
> > cygrunsrv?
>
> Nope, it's copyrighted by me, not by Red Hat.  Go ahead :-)
> Corinna

On Thu, 4 Mar 2004, Igor Pechtchanski wrote:

> P.S. Corinna, there's a bunch of typos in the cygrunsrv messages as well
> ("neverexists" instead of "neverexits").

On Sat, 13 Mar 2004, Corinna Vinschen wrote:

> On Mar 12 20:53, tony_silva<at>alum<dot>mit<dot>edu wrote:
>
> > The option "--neverexits" is mispelled as "--neverexists" in the help
> > function:
>
> Thanks for the hint.  Fixed for the next version.
> Corinna

Corinna,

Patch attached (fixes the --interactive with --user issue, and some
leftover message typos).  ChangeLog is below.  Ok to commit?
	Igor
==============================================================================
ChangeLog:
2004-03-17  Igor Pechtchanski  <pechtcha@cs.nyu.edu>

	* cygrunsrv.cc (service_main): Fix typo in comment.
	(main): Check that "--user" is not specified with
	"--interactive" (thanks to Peter Wisnovsky).
	* utils.h (reason_t): Add NoInteractiveWithUser value.
	* utils.cc (reason_list): Add description string for the
	NoInteractiveWithUser value.  Fix typos in descriptions
	for the NeverExitsNotAllowed and OnlyOneNeverExits values.
	* cygrunsrv.README: Add comment about the "--interactive"
	option only being valid with a SYSTEM service.

-- 
				http://cs.nyu.edu/~pechtcha/
      |\      _,,,---,,_		pechtcha@cs.nyu.edu
ZZZzz /,`.-'`'    -.  ;-;;,_		igor@watson.ibm.com
     |,4-  ) )-,_. ,\ (  `'-'		Igor Pechtchanski, Ph.D.
    '---''(_/--'  `-'\_) fL	a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

"I have since come to realize that being between your mentor and his route
to the bathroom is a major career booster."  -- Patrick Naughton

Attachment: cygrunsrv-interactive-nouser.patch
Description: Text document

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]