Re: RPC inconsistency

2012-05-14 Thread Fedin Pavel

On 14.05.2012 9:41, Fedin Pavel wrote:
2. ti-rpc should come with more advanced port mapper (google told me 
it's named rpcbind). ti-rpc library can't work with old portmap.


After some more debugging...
1. In fact they should be interoperable. If UNIX socket fails, ti-rpc 
library tries backwards-compatible method (IP socket on localhost).
2. For some reason it tries IPv6 socket, and, of course, fails. It 
doesn't try IPv4 after this.
3. If i comment out IPv6 entries in /etc/netconfig, it will try IPv4 TCP 
socket. But for some weird reason it fails to connect() with EADDRINUSE 
error.
4. rpcbind is not part of ti-rpc library. I was confused by man file 
with this name.


I read about this problem, but i don't really understand this 
SO_REUSEADDR trick. So i decided not to modify the tirpc code, assuming 
it works, and it's some WinSock-specific glitch. Instead i quickly 
ported rpcbind (http://sourceforge.net/projects/rpcbind/), and the whole 
thing runs correctly now.


--
 Kind regards
 Pavel Fedin
 Expert engineer, Samsung Moscow research center


--
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



autorebase

2012-05-14 Thread Marc Girod

Hi,

Did I miss an announcement?
I notice now in my setup log: 

2012/05/14 10:27:13 running: cmd.exe /c
"C:\cygwin\etc\postinstall\autorebase.bat"

Does this mean that I do not need anymore to run in an ash shell:

./rebaseall && ./peflagsall

followed with (in bash): perlrebase
...after an update?

I acknowledge I have had much fewer fork failures in recent times than I
used to.
Thanks,
Marc
-- 
View this message in context: 
http://old.nabble.com/autorebase-tp33828522p33828522.html
Sent from the Cygwin list mailing list archive at Nabble.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



Re: autorebase

2012-05-14 Thread Andrey Repin
Greetings, Marc Girod!

> Did I miss an announcement?

Yes.

> I notice now in my setup log: 

> 2012/05/14 10:27:13 running: cmd.exe /c
> "C:\cygwin\etc\postinstall\autorebase.bat"

> Does this mean that I do not need anymore to run in an ash shell:

> ./rebaseall && ./peflagsall

Yes.

> followed with (in bash): perlrebase
> ...after an update?

Probably.

> I acknowledge I have had much fewer fork failures in recent times than I
> used to.


--
WBR,
Andrey Repin (anrdae...@freemail.ru) 14.05.2012, <14:58>

Sorry for my terrible english...


--
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



"emacs -nw" hangs in a terminal

2012-05-14 Thread cygwin
Recently, emacs in a terminal started hanging:

  /usr/bin/emacs -nw --no-init-file --no-site-file

I had to kill it from another terminal window.

But I noticed /usr/bin/emacs points through alternatives to
/usr/bin/emacs-X11, so I started calling  /usr/bin/emacs-nox
directly.  (Actually I modified my emn script.)  This solves
the problem for me.

But "emacs -nw" has worked forever until very recently.

-Ken Jackson

--
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



Someone is pretending to be some Cygwin's support

2012-05-14 Thread André Bleau

Hi, 

 

A few minutes after sending my last post to the cygwin at cygwin dot com list, 
I received this,

seemingly from cygwin at cygwin dot com, but really from some joe1assitly at 
gmail dot com.

 

---

__


 

 

 

 

Type your response ABOVE THIS LINE to reply
Re: Time to obsolete the opengl package ?
1QA4xxx2a  |  MAY 14, 2012  |  12:57PM UTC 
Thank you for submitting your request. We have received your request and are 
working on responding to you as soon as possible. If you have any additional 
information to add to this case, please reply to this email.

 Thanks in advance for your patience and support. 
This message was sent to myname at myaddress in reference to Case #81939. 


 

---

 

I guess that someone has setup a program to monitor our list and send automated 
replies. A little googling

shows that it also appended recently on debian's lists.

 

The funniest thing is the request to top-post. The less funny thing is that 
might be a fishing attempt.

 

Please advise,


- André Bleau, cygwin's volunteer opengl package maintainer
 

Please reply to the list, not to me directly. 

  

--
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



Re: "emacs -nw" hangs in a terminal

2012-05-14 Thread Ken Brown

On 5/14/2012 8:29 AM, Ken Jackson wrote:

Recently, emacs in a terminal started hanging:

   /usr/bin/emacs -nw --no-init-file --no-site-file

I had to kill it from another terminal window.

But I noticed /usr/bin/emacs points through alternatives to
/usr/bin/emacs-X11, so I started calling  /usr/bin/emacs-nox
directly.  (Actually I modified my emn script.)  This solves
the problem for me.

But "emacs -nw" has worked forever until very recently.


This is a known problem with emacs-23 and glib >= 2.31:

  http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9754

I guess the problem just showed up on Cygwin a few days ago because of 
the recent update of the GNOME libraries.  And I didn't notice it myself 
because I've been using emacs-24, which doesn't have the problem.


I'll prepare an update ASAP with a fix.  In the meantime, you can 
continue with your workaround of calling emacs-nox.exe directly, or you 
can try the test version of emacs-24 that's available via setup.exe. The 
latter would be appreciated; emacs-24.1 is going to be released fairly 
soon, and it would be nice to have some Cygwin users test it.


Thanks for the report.

Ken Brown
Cygwin's emacs maintainer


--
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



Re: installing rsh and rlogin servers - rshd and rlogind

2012-05-14 Thread Andrew DeFaria

On 05/13/2012 01:13 PM, Earnie Boyd wrote:

On Sun, May 13, 2012 at 3:20 PM, Marilo wrote:

I am surprised /usr/sbin isn't in the PATH though..

Why should the system/server bin be a part of the _user_ PATH?  That
could cause issues of starting/stopping a server unaware.

Why would a user type rshd? Nothing stops a user from typing 
/usr/sbin/rshd either...

--
Andrew DeFaria 
Friction can be a real drag.


--
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



Re: Someone is pretending to be some Cygwin's support

2012-05-14 Thread Christopher Faylor
On Mon, May 14, 2012 at 09:22:37AM -0400, Andr? Bleau wrote:
>A few minutes after sending my last post to the cygwin at cygwin dot
>com list, I received this,
>
>seemingly from cygwin at cygwin dot com, but really from some
>joe1assitly at gmail dot com.

How very annoying.  I've already nuked someone like this once.

I see one potential abuser in the subscriber list for this ML so lets
see if they respond to this message.

cgf

--
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



Re: Someone is pretending to be some Cygwin's support

2012-05-14 Thread Christopher Faylor
On Mon, May 14, 2012 at 10:36:14AM -0400, Christopher Faylor wrote:
>On Mon, May 14, 2012 at 09:22:37AM -0400, Andr? Bleau wrote:
>>A few minutes after sending my last post to the cygwin at cygwin dot
>>com list, I received this,
>>
>>seemingly from cygwin at cygwin dot com, but really from some
>>joe1assitly at gmail dot com.
>
>How very annoying.  I've already nuked someone like this once.
>
>I see one potential abuser in the subscriber list for this ML so lets
>see if they respond to this message.

Actually, if you, or anyone, gets one of these please send a copy of
the message to postmaster.  Include all headers so that we can track
this down.

So far, I haven't gotten anything bounced back to my message above.

cgf

--
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



Re: CYGWIN inode over Samba share not constructed from IndexNumber

2012-05-14 Thread Jeremy Allison
On Sat, May 12, 2012 at 12:53:49PM +0200, Corinna Vinschen wrote:
> Hi Jeremy,
> 
> On May 11 14:15, Jeremy Allison wrote:
> > On Fri, May 11, 2012 at 07:58:43PM +0200, Corinna Vinschen wrote:
> > > On May 11 12:56, starlight.201...@binnacle.cx wrote:
> > > > /
> > > >  Create a 64 bit FileIndex. If the file is on the same device as
> > > >  the root of the share, just return the 64-bit inode. If it isn't,
> > > >  mangle as we used to do.
> > > > /
> > > > 
> > > > uint64_t get_FileIndex(connection_struct *conn, const SMB_STRUCT_STAT 
> > > > *psbuf)
> > > > {
> > > >uint64_t file_index;
> > > >if (conn->base_share_dev == psbuf->st_ex_dev) {
> > > >   return (uint64_t)psbuf->st_ex_ino;
> > > >}
> > > >file_index = ((psbuf->st_ex_ino) & UINT32_MAX); /* FileIndexLow */
> > > >file_index |= ((uint64_t)((psbuf->st_ex_dev) & UINT32_MAX)) << 32; 
> > > > /* FileIndexHigh */
> > > >return file_index;
> > > > }
> > > 
> > > Which Samba version introduced this behaviour?  Originally, way back
> > > when Samba 3.0.28 was new, the inode numbers were always mangled to be
> > > 64 bit numbers, AFAIK.  The code in Cygwin which doesn't trust 32 bit
> > > inode numbers on remote drives is there for ages, at least since 2007.
> > > 
> > > Fortunately we have an interface which allows to fetch the Samba version
> > > number from the server since Samba 3.0.28a.  So, if we know which Samba
> > > version started to return the real 32 bit inode number, we can adapt.
> > > [...]
> > > inline bool
> > > path_conv::isgood_inode (__ino64_t ino) const
> > > {
> > >   /* We can't trust remote inode numbers of only 32 bit.  That means,
> > >  remote NT4 NTFS, as well as shares of Samba version < 3.0.
> > >  The known exception are SFU NFS shares, which return the valid 32 bit
> > >  inode number from the remote file system unchanged. */
> > >   return hasgood_inode () && (ino > UINT32_MAX || !isremote () || 
> > > fs_is_nfs ());
> > > }
> > 
> > The get_FileIndex() code has been there since at least 3.6.x, but
> > I'll try and track down when it was first introduced.
> 
> That would be nice.  For now, assuming the get_FileIndex has been
> introduced with 3.6.0, I'd go with this new implementation, stretched
> out and better comments for readability:

get_FileIndex() is in 3.5.x (current code). It was added in
commit 920ffe49290cacd30d9bc582c1c3fee38308c260, which went
in on Thu May 20 11:36:47 2010, which means it went into
Samba 3.5.4.

Jeremy.

--
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



Re: Someone is pretending to be some Cygwin's support

2012-05-14 Thread Achim Gratz
Christopher Faylor writes:
> Actually, if you, or anyone, gets one of these please send a copy of
> the message to postmaster.  Include all headers so that we can track
> this down.

This is happening on a few debian lists as well, Google will show you.
It is unconcluive if he's even subscribed to all these lists, some list
admins swear that he is not, so he may actually pull them from someplace
else.  As far as I've been able to track it down, the mails come from a
test installation of a "User Help Desk" at http://portal.joegiglio.org
created by a guy named Joe Giglio which apparently works as a QA for the
company that makes the software (Assistly from desk.com).  The company
does not have any email address on their website and the one from the
whois entry from the portal site is apparently ignored.  I've deleted
the mails I've received so far, but I'll surely get another one in
response to this post, so where do I send the headers then?


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

SD adaptation for Waldorf microQ V2.22R2:
http://Synth.Stromeko.net/Downloads.html#WaldorfSDada


--
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



Re: Someone is pretending to be some Cygwin's support

2012-05-14 Thread LMH
As an aside, I've wondered for some time why this group is a mailing 
list and not a vBulitin type forum. Would not such spam be easier to 
control with forum admin tools? At least a user needs to sign up 
(possibly with some form of CAPTCHA) and the account needs to be 
approved and activated. At least such spam wouldn't automatically end up 
in mailboxes and I believe that it is harder to implement fishing though 
forum posts.


Just some thoughts...

LMH



Achim Gratz wrote:

Christopher Faylor writes:

Actually, if you, or anyone, gets one of these please send a copy of
the message to postmaster.  Include all headers so that we can track
this down.


This is happening on a few debian lists as well, Google will show you.
It is unconcluive if he's even subscribed to all these lists, some list
admins swear that he is not, so he may actually pull them from someplace
else.  As far as I've been able to track it down, the mails come from a
test installation of a "User Help Desk" at http://portal.joegiglio.org
created by a guy named Joe Giglio which apparently works as a QA for the
company that makes the software (Assistly from desk.com).  The company
does not have any email address on their website and the one from the
whois entry from the portal site is apparently ignored.  I've deleted
the mails I've received so far, but I'll surely get another one in
response to this post, so where do I send the headers then?


Regards,
Achim.


--
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



Re: Someone is pretending to be some Cygwin's support

2012-05-14 Thread Ken Jackson
 Mon, May 14, 2012 at 01:46PM -0400 LMH wrote:
> As an aside, I've wondered for some time why this group is a mailing
> list and not a vBulletin type forum.

I second the motion.

-Ken Jackson

--
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



Re: Someone is pretending to be some Cygwin's support

2012-05-14 Thread Daniel Colascione
On 5/14/12 11:12 AM, Ken Jackson wrote:
>  Mon, May 14, 2012 at 01:46PM -0400 LMH wrote:
>> As an aside, I've wondered for some time why this group is a mailing
>> list and not a vBulletin type forum.
> 
> I second the motion.
> 

No.

Mailing lists are infinitely easier to filter, archive, and read. I
have my choice of client. Email supports cryptographic authentication.
Really, the "forum" model is a humongous step backward from the state
of the art of the 1980s.

No, please, let's stick with email. If you'd rather access the list
using a forum-style interface, consider gmane. (Note that you can
access an email list as a "forum", but not a "forum" as an email list.)



signature.asc
Description: OpenPGP digital signature


GVim slow to respond

2012-05-14 Thread K Stahl
Modified from my original email on the XFree mailing list:

After updating yesterday (2012-05-10) I am experiencing the following
behavior when using GVim within an X-Session:

While scrolling through a file in visual mode using either "H", "J",
"K", or "L", the cursor is slow to respond.

What I am witnessing is that if you hold down any of these keys, the
cursor remains in place until the key is released.

--
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



Re: Someone is pretending to be some Cygwin's support

2012-05-14 Thread Mark Rousell
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 14/05/2012 19:30, Daniel Colascione wrote:
> On 5/14/12 11:12 AM, Ken Jackson wrote:
>>  Mon, May 14, 2012 at 01:46PM -0400 LMH wrote:
>>> As an aside, I've wondered for some time why this group is a mailing
>>> list and not a vBulletin type forum.
>>
>> I second the motion.
>>
> 
> No.
> 
> Mailing lists are infinitely easier to filter, archive, and read. I
> have my choice of client. Email supports cryptographic authentication.
[...]
> No, please, let's stick with email. If you'd rather access the list
> using a forum-style interface, consider gmane. (Note that you can
> access an email list as a "forum", but not a "forum" as an email
> list.)

I wholeheartedly agree. Let's stick with email.

> Really, the "forum" model is a humongous step backward from the state
> of the art of the 1980s.

Indeed. It needn't be like this, forums could be so much better, but
they are not.


- -- 
MarkR

PGP public key: http://www.signal100.com/markr/pgp
Key ID: C9C5C162
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.11 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk+xWI4ACgkQJQGogsnFwWLWiwCgnj6LN6wsz9EEtpy+FW3esKTM
7TEAnjXXeCi18n+r9KdVVsyl5WCP1Qc9
=qoms
-END PGP SIGNATURE-


--
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



Re: Someone is pretending to be some Cygwin's support

2012-05-14 Thread Christopher Faylor
On Mon, May 14, 2012 at 11:30:49AM -0700, Daniel Colascione wrote:
>On 5/14/12 11:12 AM, Ken Jackson wrote:
>>  Mon, May 14, 2012 at 01:46PM -0400 LMH wrote:
>>> As an aside, I've wondered for some time why this group is a mailing
>>> list and not a vBulletin type forum.
>> 
>> I second the motion.
>
>No.
>
>Mailing lists are infinitely easier to filter, archive, and read. I
>have my choice of client. Email supports cryptographic authentication.
>Really, the "forum" model is a humongous step backward from the state
>of the art of the 1980s.
>
>No, please, let's stick with email. If you'd rather access the list
>using a forum-style interface, consider gmane. (Note that you can
>access an email list as a "forum", but not a "forum" as an email list.)

Don't worry, I'm not going to go to the effort involved in making a
"forum".  We get people who spam bugzilla *all* *of* *the* *time*.  Why
would a forum be any different?  It's even harder to police because you
need something different than the spam machinery which keeps the mailing
lists at this site relatively spam free.  Maintain two distinct
spam-blocking mechanisms?  I don't think so.

So, I don't see any benefit but, even if I did, I wouldn't be inclined
to add this infrastructure to sourceware.org just for Cygwin.

Also, as most readers of this list know, there is no "voting" here so
"second"ing something is just adding more noise to this mailing list.

--
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



Re: Someone is pretending to be some Cygwin's support

2012-05-14 Thread Christopher Faylor
On Mon, May 14, 2012 at 07:37:08PM +0200, Achim Gratz wrote:
>Christopher Faylor writes:
>> Actually, if you, or anyone, gets one of these please send a copy of
>> the message to postmaster.  Include all headers so that we can track
>> this down.
>
>This is happening on a few debian lists as well, Google will show you.
>It is unconcluive if he's even subscribed to all these lists, some list
>admins swear that he is not, so he may actually pull them from someplace
>else.  As far as I've been able to track it down, the mails come from a
>test installation of a "User Help Desk" at http://portal.joegiglio.org
>created by a guy named Joe Giglio which apparently works as a QA for the
>company that makes the software (Assistly from desk.com).  The company
>does not have any email address on their website and the one from the
>whois entry from the portal site is apparently ignored.  I've deleted
>the mails I've received so far, but I'll surely get another one in
>response to this post, so where do I send the headers then?

"Actually, if you, or anyone, gets one of these please send a copy of
the message to postmaster."

--
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



Re: Someone is pretending to be some Cygwin's support

2012-05-14 Thread Ryan Johnson

On 14/05/2012 12:30 PM, Daniel Colascione wrote:

On 5/14/12 11:12 AM, Ken Jackson wrote:

 Mon, May 14, 2012 at 01:46PM -0400 LMH wrote:

As an aside, I've wondered for some time why this group is a mailing
list and not a vBulletin type forum.

I second the motion.


No.

Mailing lists are infinitely easier to filter, archive, and read. I
have my choice of client. Email supports cryptographic authentication.
Really, the "forum" model is a humongous step backward from the state
of the art of the 1980s.

No, please, let's stick with email. If you'd rather access the list
using a forum-style interface, consider gmane. (Note that you can
access an email list as a "forum", but not a "forum" as an email list.)
I'll be the first to admit that a good UI is important, but they were 
arguing for a forum because it would foil spoofing and anonymous spamming.


While cryptographic authentication could stop that too, I'm not sure 
it's practical to require all postings by list members to be 
cryptographically signed. It's been around as long as I can remember 
(state of the art of the 80's, perhaps?) and still hasn't caught on 
widely yet. Did you sign your message? I didn't.


$0.02
Ryan


--
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



strace crashes when given the --pid option

2012-05-14 Thread Ken Brown

In a Cygwin terminal:

$ strace --version
strace (cygwin) 1.7.15
System Trace
Copyright (C) 2000 - 2012 Red Hat, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

$ cat

In a second Cygwin terminal:

$ ps | grep cat
I403658204036   3660  pty01001 16:18:07 /usr/bin/cat

$ strace --pid=4036
Segmentation fault

Ken

--
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



Re: GVim slow to respond (emacs-X11 too)

2012-05-14 Thread Ken Jackson
 Mon, May 14, 2012 at 02:55PM -0400 K Stahl wrote:
> What I am witnessing is that if you hold down any of these keys, the
> cursor remains in place until the key is released.

I'm seeing about the same think in emacs-X11.

I hold down an arrow key and the cursor stays still until I release
it and then the cursor zips to where it would normally have moved to.

It's not actually slow--it's just that the repeat motion is hidden.

-Ken Jackson

--
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



Username and Computer Name

2012-05-14 Thread max

I am installing cygwin on a new computer and I was told that the green
"username@computername ' " is supposed to be hidden, and that I  
somehow installed Cygwin improperly.


Could someone please explain how to hide or setup cygwin properly to  
not show this?


Mahalo,
Max




--
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



problem with find's -size and -exec options

2012-05-14 Thread j. k. colligan
Friends -

I just noticed a difference in behavior between Cygwin's "find" and
the one in Linux, or
so it seems.

I was trying to locate files smaller than a given size, and thus ran

    find . -size -4000c

That worked, and listed the file names only for files < 4000 bytes in
size.  But if I run

    find . -size -4000c -exec ls -l {} \;

it turns out that *all* files are listed!  (Plus the small ones at the
end of the list.)  This
surprised me.  In other similar cases I've run in the past, the
earlier-in-the-command-line
filters took effect before the exec.

The Linux version of "find" doesn't operate that way:  in the latter
case, only the "small"
files are passed to ls.  And if one replaces "-4000c" with "+4000c",
it works as I'd expect.

And yeah, I tried escaping that minus sign for the Cygwin shell, a la

    find . -size \-4000c -exec ls -l {} \;

Same unexpected (to me) result.  Am I way outta whack here, of is this
a real problem?
Thanks!

cheers,
j. kev
jkev...@gmail.com
Monday, 2012.05.14 @ 1830 EDT

--
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



Re: strace crashes when given the --pid option

2012-05-14 Thread Christopher Faylor
On Mon, May 14, 2012 at 04:20:55PM -0400, Ken Brown wrote:
>In a Cygwin terminal:
>
>$ strace --version
>strace (cygwin) 1.7.15
>System Trace
>Copyright (C) 2000 - 2012 Red Hat, Inc.
>This is free software; see the source for copying conditions.  There is NO
>warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
>
>$ cat
>
>In a second Cygwin terminal:
>
>$ ps | grep cat
>I403658204036   3660  pty01001 16:18:07 /usr/bin/cat
>
>$ strace --pid=4036
>Segmentation fault

Should be fixed in the next snapshot.  This is a cygwin DLL error so you only
need to update the DLL, not strace.exe itself.

http://cygwin.com/snapshots/

--
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



Re: problem with find's -size and -exec options

2012-05-14 Thread René Berber

On 5/14/2012 5:29 PM, j. k. colligan wrote:


I just noticed a difference in behavior between Cygwin's "find" and
the one in Linux, or
so it seems.

I was trying to locate files smaller than a given size, and thus ran

 find . -size -4000c

That worked, and listed the file names only for files<  4000 bytes in
size.  But if I run

 find . -size -4000c -exec ls -l {} \;

it turns out that *all* files are listed!


Looks like the problem is that find returns directories.

Try "find -type f -size -4000c -ls"

(yes, find already has ls built in, no need to use exec).
--
René Berber


--
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



Re: problem with find's -size and -exec options

2012-05-14 Thread Eric Blake
On 05/14/2012 04:29 PM, j. k. colligan wrote:
> Friends -
> 
> I just noticed a difference in behavior between Cygwin's "find" and
> the one in Linux, or
> so it seems.
> 
> I was trying to locate files smaller than a given size, and thus ran
> 
> find . -size -4000c
> 
> That worked, and listed the file names only for files < 4000 bytes in
> size.  But if I run
> 
> find . -size -4000c -exec ls -l {} \;
> 
> it turns out that *all* files are listed!  (Plus the small ones at the
> end of the list.)  This
> surprised me.  In other similar cases I've run in the past, the
> earlier-in-the-command-line
> filters took effect before the exec.

Compare 'stat .' on Linux and on cygwin.  On Linux, directories have
non-negligible size, typically as a multiple of 4k, and generally
accurately measured according to underlying inodes consumed by the
directory; so, for a non-empty directory, it will have size 4096, and be
filtered out by your '-size -4000c'.  On Cygwin, directory size is
typically faked as 0 (since Windows doesn't really give cygwin any thing
better to work with while still remaining efficient).  POSIX says that
the st_size of a stat() on a directory is undefined (the Linux
definition makes more sense, but cygwin isn't breaking POSIX by
returning 0 instead of jumping through hoops to invent a reasonable
non-zero size).  Therefore, '-size -4000c' doesn't filter '.'.

The reason -exec is listing everything is that on cygwin, you ended up
passing '.' as one of the arguments to list.  You can use '-type f' to
filter out directories.

> Same unexpected (to me) result.  Am I way outta whack here, of is this
> a real problem?

I'll let you draw your own answer to that question :)  But I don't see
any way to change findutils or cygwin to work around this difference in
directory st_size.

-- 
Eric Blake   ebl...@redhat.com+1-919-301-3266
Libvirt virtualization library http://libvirt.org



signature.asc
Description: OpenPGP digital signature


Re: Username and Computer Name

2012-05-14 Thread René Berber

On 5/14/2012 4:19 PM, m...@kalani.com wrote:


I am installing cygwin on a new computer and I was told that the green
"username@computername ' " is supposed to be hidden, and that I somehow
installed Cygwin improperly.


That's not true, whoever told you that is either joking or making fun at 
your expense.



Could someone please explain how to hide or setup cygwin properly to not
show this?


You can change it any way you want, its part of the shell prompt, 
controlled by environment variable PS1 (and PROMPT_COMMAND for the 
window title).

--
René Berber


--
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



Re: Username and Computer Name

2012-05-14 Thread Greg Chicares
On 2012-05-14 21:19Z, m...@kalani.com wrote:
> I am installing cygwin on a new computer and I was told that the green
> "username@computername ' " is supposed to be hidden, and that I  
> somehow installed Cygwin improperly.

That's a normal part of the default bash prompt. (Perhaps your
employer would prefer that you remove it?)

> Could someone please explain how to hide or setup cygwin properly to  
> not show this?

Run 'man bash' and look for PS1. Remove the '\u@\h' part. To make
the change permanent, set your own PS1 in '~/.bash_profile'. This
isn't cygwin specific, so you can google for more details.

--
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



Re: [feature] alias "more" to "less"

2012-05-14 Thread Cyrille Lefevre

Le 12/05/2012 12:57, Corinna Vinschen a écrit :

On May 12 03:08, Cyrille Lefevre wrote:

Le 11/05/2012 18:23, Larry Hall (Cygwin) a écrit :

On 5/11/2012 9:35 AM, Buchbinder, Barry (NIH/NIAID) [E] wrote:

Noel Grandin sent the following at Friday, May 11, 2012 4:33 AM

It seems that pretty much all unixes alias "more" to "less" these days.
It would be very nice if that was the default behaviour of cygwin.

Would save me from constantly wondering why nothing is happening when I
type "more " on a newly installed box :-)


more.exe is supplied by the util-linux package.


And as is true of the traditional 'more', it can do less than 'less'. ;-)



from http://www.slackbook.org/html/file-commands-pagers.html

about less :

"less is more, but more more than more is, so more is less less, so
use more less if you want less more."

about most :

"If less is more than more, most is more than less."

unfortunatelly, most doesn't exist yet under cygwin :-(


http://cygwin.com/setup.html


well, and then ?!

http://cygwin.com/cgi-bin2/package-grep.cgi?grep=%2Fusr%2Fbin%2Fmost
=>  Found 0 matches for /usr/bin/most

however, someone have made it available somewhere

Cyrille@pcvista /home/Cyrille
v2$ uname -a
CYGWIN_NT-6.0 pcvista 1.7.14(0.260/5/3) 2012-04-25 09:41 i686 Cygwin

Cyrille@pcvista /home/Cyrille
v2$ most --help
MOST version 5.0.0 (S-Lang version 2.2.4)
 *Note: This executable was compiled against S-Lang 2.2.2
Usage:
most [-1Cbcdkstvw] [+/string] [+line number] [+s] [+d] file...
 where: -1:  assume VT100 terminal. (VMS only)
-b:  Startup in binary mode.
-C:  disable color support
-c:  Make searches case sensitive.
-d:  Do not display the \ wrap marker when wrapping lines.
-M:  Do not attempt to mmap files.
-s:  Squeeze out excess blank lines.
-t:  Display tabs as ^I.  If this option is immediately followed
   by an integer, the integer sets the tab width.
-u:  Disable UTF-8 mode
-v:  Do not interpret backspace formatting characters.
-w:  Wrap lines.
-z:  No gunzip-on-the-fly.
+/string:
 Search for string
+line number
 Start up at specified line number.
+d:  Allow file deletion.
+s:  Secure Mode-- no edit, cd, shell, and reading files not
   already listed on the command line.
+u:  Enable UTF-8 mode.

Example: most -ct4 +82 keymap.c
 makes searches case sensitive, sets tabwidth to 4, and displays the file
 keymap.c starting at line 82.

hopefully it will make it available for everyone :-)

Regards,

Cyrille Lefevre
--
mailto:cyrille.lefevre-li...@laposte.net


--
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



Re: [feature] alias "more" to "less"

2012-05-14 Thread Cyrille Lefevre

Le 15/05/2012 02:21, Cyrille Lefevre a écrit :

Le 12/05/2012 12:57, Corinna Vinschen a écrit :

On May 12 03:08, Cyrille Lefevre wrote:


unfortunatelly, most doesn't exist yet under cygwin :-(


http://cygwin.com/setup.html


well, and then ?!


forgive me, I tought you redirect me on setup.exe ;-)

Regards,

Cyrille Lefevre
--
mailto:cyrille.lefevre-li...@laposte.net


--
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



Re: Username and Computer Name

2012-05-14 Thread max

Hello Greg,



Could you please explain more into detail on how to obtain a PS1?




Mahalo,
Max










On 2012-05-14 21:19Z, m...@kalani.com wrote:

I am installing cygwin on a new computer and I was told that the green
"username@computername ' " is supposed to be hidden, and that I   
somehow installed Cygwin improperly.


That's a normal part of the default bash prompt. (Perhaps your
employer would prefer that you remove it?)

Could someone please explain how to hide or setup cygwin properly to  
 not show this?


Run 'man bash' and look for PS1. Remove the '\u@\h' part. To make
the change permanent, set your own PS1 in '~/.bash_profile'. This
isn't cygwin specific, so you can google for more details.

--
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


--
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



Re: Username and Computer Name

2012-05-14 Thread Pascal J. Bourguignon
m...@kalani.com writes:

> Could you please explain more into detail on how to obtain a PS1?

What else can we tell you?  You've been explained how to learn about it,
and you haven't.  What can we do?

> Run 'man bash' and look for PS1. Remove the '\u@\h' part. To make
> the change permanent, set your own PS1 in '~/.bash_profile'. This
> isn't cygwin specific, so you can google for more details.


If you don't know how to look for a string in a text by reading that
text, you could try to use a computer command:


   man bash | grep -C 3  PS1


But since you couldn't type the man bash command, I don't expect you to
be able to type the more complex man bash | grep -C 3  PS1 command.  And
since you've not been able to read the bash manual, how could I expect
you to be able to read the extracts?

-- 
__Pascal Bourguignon__ http://www.informatimago.com/
A bad day in () is better than a good day in {}.

--
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



user-group relationship problem

2012-05-14 Thread Fedin Pavel
 Looks like i've figured out why NFS sometimes becomes unresponsive. 
This can be uid/gid problem.
 I have a local used named 'nfsd' to run the server. Here is its line 
from what mkpasswd -l reports. Note its GID=513.


nfsd:unused:1010:513:nfsd,U-fedinw7x64\nfsd,S-1-5-21-2187549510-2720235518-4109675292-1010:/home/nfsd:/bin/bash

 I have created this user as a member of 'Administrators' group. 
However look at mkgroup -l output:


Administrators:S-1-5-32-544:544:
None:S-1-5-21-2187549510-2720235518-4109675292-513:513:

So where has this 'none' came from? I even don't have it in my 
management console. And why does mkpasswd think that 'nfsd' user belongs 
to this 'None' group?


--
 Kind regards
 Pavel Fedin
 Expert engineer, Samsung Moscow research center


--
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