public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* [ANNOUNCEMENT] Updated: Cygwin 1.7.12
@ 2012-04-03 14:51 Corinna Vinschen
  2012-04-04 18:51 ` Achim Gratz
  0 siblings, 1 reply; 8+ messages in thread
From: Corinna Vinschen @ 2012-04-03 14:51 UTC (permalink / raw)
  To: cygwin

Hi Cygwin friends and users,


I just released 1.7.12.  This is mainly a bugfix release, but a couple
of bigger changes were required under the hood to fix some of the bugs.


What's new:
===========

- Cygwin now automatically populates the /dev directory with all
  existing POSIX devices.

- Add virtual /proc/PID/mountinfo file.

- flock now additionally supports the following scenario, which requires
  to propagate locks to the parent process:

    (
      flock -n 9 || exit 1
      # ... commands executed under lock ...
    } 9>/var/lock/mylockfile

  Only propagation to the direct parent process is supported so far,
  not to grand parents or sibling processes.

- Add a "detect_bloda" setting for the CYGWIN environment variable to help
  finding potential BLODAs.


Bug fixes:
==========

- Fix a subtle, long-standing bug when reading the CYGWIN environment
  variable, which could result in overwriting unrelated memory.

- Fix wrong MB_CUR_MAX setting at process startup.

- Define tcgetsid with correct return type.

- Fix Ctrl-C handling in the console for Cygwin processes.
 
- Fix a bug in controlling tty handling when duplicating a console
  descriptor.

- More fixes to handle DLL loading correctly.

- Fix a problem with a Windows network function misbehaving if the
  stack of the current thread is in the high address area.  Typically
  this only affected 64 bit systems.

- Fix a bug in Cygwin executable recognition which could result in
  some applications not started correctly.

- Don't handle 0 bytes reads on pipes as EOF.

- Fix scenarios in which the signal handling between parent and child
  process were broken due to a race condition.

- Fix a memory leak in synchronization calls like sleep or
  pthread_cond_timedwait.

- Fix definitions of MCAST_INCLUDE and MCAST_EXCLUDE in cygwin/socket.h.

- Simplify system time handling, fix return values of clock_getres and
  clock_setres for CLOCK_REALTIME, and fix potential infinite loop due
  to overaggressive optimization.

- Avoid using a potentially unrelated handle as stdio handle.

- Fix a few potential crashes.


Have fun,
Corinna


    *** CYGWIN-ANNOUNCE UNSUBSCRIBE INFO ***

If you want to unsubscribe from the cygwin-announce mailing list, look
at the "List-Unsubscribe: " tag in the email header of this message.
Send email to the address specified there. It will be in the format:

cygwin-announce-unsubscribe-you=yourdomain.com@cygwin.com

If you need more information on unsubscribing, start reading here:

http://sourceware.org/lists.html#unsubscribe-simple

Please read *all* of the information on unsubscribing that is available
starting at this URL.

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader          cygwin AT cygwin DOT com
Red Hat

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

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [ANNOUNCEMENT] Updated: Cygwin 1.7.12
  2012-04-03 14:51 [ANNOUNCEMENT] Updated: Cygwin 1.7.12 Corinna Vinschen
@ 2012-04-04 18:51 ` Achim Gratz
  2012-04-04 18:56   ` Thrall, Bryan
  2012-04-05 10:19   ` Corinna Vinschen
  0 siblings, 2 replies; 8+ messages in thread
From: Achim Gratz @ 2012-04-04 18:51 UTC (permalink / raw)
  To: cygwin

Corinna Vinschen writes:
>
> I just released 1.7.12.  This is mainly a bugfix release, but a couple
> of bigger changes were required under the hood to fix some of the bugs.
>

I'm not really sure if that happens because of the changes in 1.7.12 or
if I just never saw it before:

Using ~-expansion in the shell gives me the eight users that mkpasswd
has created plus an additional "user" with ???????? as its name and the
home directory set to /mnt/userdata, which gets me a funny prompt when
doing a cd into that directory.  Is there a way to drop such users from
the expansion?


Regards,
Achim.
-- 
+<[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]>+

Factory and User Sound Singles for Waldorf rackAttack:
http://Synth.Stromeko.net/Downloads.html#WaldorfSounds


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

^ permalink raw reply	[flat|nested] 8+ messages in thread

* RE: [ANNOUNCEMENT] Updated: Cygwin 1.7.12
  2012-04-04 18:51 ` Achim Gratz
@ 2012-04-04 18:56   ` Thrall, Bryan
  2012-04-05 10:19   ` Corinna Vinschen
  1 sibling, 0 replies; 8+ messages in thread
From: Thrall, Bryan @ 2012-04-04 18:56 UTC (permalink / raw)
  To: cygwin; +Cc: Thrall, Bryan

Achim Gratz wrote on 2012-04-04: 
> Corinna Vinschen writes:
>> 
>> I just released 1.7.12.  This is mainly a bugfix release, but a
couple
>> of bigger changes were required under the hood to fix some of the
bugs.
>> 
> 
> I'm not really sure if that happens because of the changes in 1.7.12
or
> if I just never saw it before:
> 
> Using ~-expansion in the shell gives me the eight users that mkpasswd
> has created plus an additional "user" with ???????? as its name and
the
> home directory set to /mnt/userdata, which gets me a funny prompt when
> doing a cd into that directory.  Is there a way to drop such users
from
> the expansion?

I see it too, and I'm running a pre-1.7.12 snapshot:

$ uname -a
CYGWIN_NT-5.1 pc1163-8413-xp 1.7.12s(0.260/5/3) 20120321 15:56:37 i686
Cygwin

--
Bryan Thrall
Principal Software Engineer
FlightSafety International
bryan.thrall@flightsafety.com



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

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [ANNOUNCEMENT] Updated: Cygwin 1.7.12
  2012-04-04 18:51 ` Achim Gratz
  2012-04-04 18:56   ` Thrall, Bryan
@ 2012-04-05 10:19   ` Corinna Vinschen
  2012-04-05 15:50     ` Achim Gratz
  1 sibling, 1 reply; 8+ messages in thread
From: Corinna Vinschen @ 2012-04-05 10:19 UTC (permalink / raw)
  To: cygwin

On Apr  4 20:51, Achim Gratz wrote:
> Corinna Vinschen writes:
> >
> > I just released 1.7.12.  This is mainly a bugfix release, but a couple
> > of bigger changes were required under the hood to fix some of the bugs.
> >
> 
> I'm not really sure if that happens because of the changes in 1.7.12 or
> if I just never saw it before:

It's long-standing behaviour, already since 1.5 (maybe even 1.3) days.

> Using ~-expansion in the shell gives me the eight users that mkpasswd
> has created plus an additional "user" with ???????? as its name and the
> home directory set to /mnt/userdata, which gets me a funny prompt when

The weird home dir could be a bug in Cygwin.  I can't reproduce it,
but I could think of a reason.  Do you have a directory called
/mnt/userdata or an account called userdata in /etc/passwd?  Anyway,
I applied a patch which should result in:

  $ cd ~\?\?\?\?\?\?\?\?
  : No such file or directory.

> doing a cd into that directory.  Is there a way to drop such users from
> the expansion?

Not if we don't change Cygwin, but there's a workaround, more later.

As you know, Cygwin has to map between Windows SID and POSIX uid/gid
when mapping user accounts.  That's what /etc/passwd and /etc/group are
for.  If a file belongs to a user for which there's no entry in
/etc/passwd (same for group -> /etc/group), then the uid is set to -1.
ls then prints somthing like this:

  $ ls -l /cygdrive/c/pagefile.sys
  -rw-r-----  1 4294967295 4294967295 1073741824 Mar 24 17:40 pagefile.sys
the 

At one point, way back when, somebody thought it is a good idea if ls
doesn't print the uid/gid 4294967295, but something more meaningful.
Since these times, Cygwin always adds an entry

  ????????:*:-1:-1:

at the end of the internal copy of /etc/passwd (analog for /etc/group).

If there's a consensus that we don't need this anymore and printing
the uid/gid 4294967295 is sufficient, I'm happy to remove this entries
from the passwd and group list.

Workaround:  Add an entry with uid/gid -1 to /etc/passwd and /etc/group
to override the ???????? entry:

  $ echo "dummy::-1:-1:::" >> /etc/passwd
  $ echo "dummy::-1:" >> /etc/group
  $ ls -l /cygdrive/c/pagefile.sys
  -rw-r-----  1 dummy dummy 1073741824 Mar 24 17:40 pagefile.sys
  $ cd ~<TAB>
  Administrator  cyg_server     krbtgt         sshd_server
  Administrators dummy          LocalService   SYSTEM
  corinna        Guest          sshd

Alternatively you can use an already existing user name:

  $ echo "corinna::-1:-1:::" >> /etc/passwd
  $ cd ~<TAB>
  Administrator  cyg_server     LocalService   SYSTEM
  Administrators Guest          sshd
  corinna        krbtgt         sshd_server

However, that's kind of misleading in ls -l:

  $ ls -l /cygdrive/c/pagefile.sys
  -rw-r-----  1 corinna dummy 1073741824 Mar 24 17:40 pagefile.sys

The pagefile is certainly not owened by my own user account. 


Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader          cygwin AT cygwin DOT com
Red Hat

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

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [ANNOUNCEMENT] Updated: Cygwin 1.7.12
  2012-04-05 10:19   ` Corinna Vinschen
@ 2012-04-05 15:50     ` Achim Gratz
  2012-04-05 16:15       ` Corinna Vinschen
  0 siblings, 1 reply; 8+ messages in thread
From: Achim Gratz @ 2012-04-05 15:50 UTC (permalink / raw)
  To: cygwin

Corinna Vinschen writes:
> The weird home dir could be a bug in Cygwin.  I can't reproduce it,
> but I could think of a reason.  Do you have a directory called
> /mnt/userdata or an account called userdata in /etc/passwd?  Anyway,
> I applied a patch which should result in:

No account there with the name "userdata", but there was an empty
directory named /mnt/userdata.  I've deleted it since the mountpoint
will work without it, let's see if the issue comes up again.

>   $ cd ~\?\?\?\?\?\?\?\?
>   : No such file or directory.

I ended up in /mnt/userdata, but the really interesting issue was if I
would then cd into "All Users" for instance, the prompt would show:

~\?\?\?\?\?\?\?\/All Users

I had to do a 'cd ~otheruser' to a user that has a home dir in passwd
before tcsh forgot about that association, IIRC.  I can test that again
if it is of any importance.

> As you know, Cygwin has to map between Windows SID and POSIX uid/gid
> when mapping user accounts.  That's what /etc/passwd and /etc/group are
> for.  If a file belongs to a user for which there's no entry in
> /etc/passwd (same for group -> /etc/group), then the uid is set to -1.
> ls then prints somthing like this:
[...]

I don't have any problems with the question marks showing up in
directory listings, I would just prefer if a user that has no home
directory set in /etc/passwd is not offered as an expansion for '~'.

But as there are likely more important problems to solve, if things stay
as they arethis is also OK.


Regards,
Achim.
-- 
+<[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]>+

Wavetables for the Terratec KOMPLEXER:
http://Synth.Stromeko.net/Downloads.html#KomplexerWaves


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

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [ANNOUNCEMENT] Updated: Cygwin 1.7.12
  2012-04-05 15:50     ` Achim Gratz
@ 2012-04-05 16:15       ` Corinna Vinschen
  2012-04-05 18:13         ` Achim Gratz
  0 siblings, 1 reply; 8+ messages in thread
From: Corinna Vinschen @ 2012-04-05 16:15 UTC (permalink / raw)
  To: cygwin

On Apr  5 17:49, Achim Gratz wrote:
> I don't have any problems with the question marks showing up in
> directory listings, I would just prefer if a user that has no home
> directory set in /etc/passwd is not offered as an expansion for '~'.

Expansion is done by the shell, not by Cygwin.


Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader          cygwin AT cygwin DOT com
Red Hat

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

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [ANNOUNCEMENT] Updated: Cygwin 1.7.12
  2012-04-05 16:15       ` Corinna Vinschen
@ 2012-04-05 18:13         ` Achim Gratz
  2012-04-05 18:24           ` Corinna Vinschen
  0 siblings, 1 reply; 8+ messages in thread
From: Achim Gratz @ 2012-04-05 18:13 UTC (permalink / raw)
  To: cygwin

Corinna Vinschen writes:
> On Apr  5 17:49, Achim Gratz wrote:
>> I don't have any problems with the question marks showing up in
>> directory listings, I would just prefer if a user that has no home
>> directory set in /etc/passwd is not offered as an expansion for '~'.
>
> Expansion is done by the shell, not by Cygwin.

Yes, but since there is no entry for the home dir in passwd for these
users, the association with /mnt/userdata/ must come from the way Cygwin
interprets them.  Is there any harm to set a different (maybe even
non-existing) home directory in passwd for these accounts?  That would
likely solve that problem, I'd think.


Regards,
Achim.
-- 
+<[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]>+

Waldorf MIDI Implementation & additional documentation:
http://Synth.Stromeko.net/Downloads.html#WaldorfDocs


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

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [ANNOUNCEMENT] Updated: Cygwin 1.7.12
  2012-04-05 18:13         ` Achim Gratz
@ 2012-04-05 18:24           ` Corinna Vinschen
  0 siblings, 0 replies; 8+ messages in thread
From: Corinna Vinschen @ 2012-04-05 18:24 UTC (permalink / raw)
  To: cygwin

On Apr  5 20:12, Achim Gratz wrote:
> Corinna Vinschen writes:
> > On Apr  5 17:49, Achim Gratz wrote:
> >> I don't have any problems with the question marks showing up in
> >> directory listings, I would just prefer if a user that has no home
> >> directory set in /etc/passwd is not offered as an expansion for '~'.
> >
> > Expansion is done by the shell, not by Cygwin.
> 
> Yes, but since there is no entry for the home dir in passwd for these
> users, the association with /mnt/userdata/ must come from the way Cygwin
> interprets them.

No.  Cygwin just provides the naked data.  The rest is entirely
in the jurisdiction of the application using the data.  Just as on
any other OS.

> Is there any harm to set a different (maybe even
> non-existing) home directory in passwd for these accounts?  That would
> likely solve that problem, I'd think.

Not at all.  Follow my suggestion and add an entry for the ????????
user with a non-existent dir "/foo" to /etc/passwd.  The shell will
dilligently pick up the entry and `cd ~\?\?\?\?\?\?\?\?' will result
in a "/foo: No such file or directory" message.

If you think this should be changed, you will have to complain upstream
in the bash or dash or mksh or tcsh or zsh developer's mailing list.


Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader          cygwin AT cygwin DOT com
Red Hat

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

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2012-04-05 18:24 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-04-03 14:51 [ANNOUNCEMENT] Updated: Cygwin 1.7.12 Corinna Vinschen
2012-04-04 18:51 ` Achim Gratz
2012-04-04 18:56   ` Thrall, Bryan
2012-04-05 10:19   ` Corinna Vinschen
2012-04-05 15:50     ` Achim Gratz
2012-04-05 16:15       ` Corinna Vinschen
2012-04-05 18:13         ` Achim Gratz
2012-04-05 18:24           ` Corinna Vinschen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).