Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com X-Authentication-Warning: slinky.cs.nyu.edu: pechtcha owned process doing -bs Date: Tue, 30 Sep 2003 10:33:36 -0400 (EDT) From: Igor Pechtchanski Reply-To: cygwin AT cygwin DOT com To: Yap on ExactGeom cc: cygwin AT cygwin DOT com Subject: Re: Hello and cygwin quesiton In-Reply-To: <3F7A1AC0.3050503@cs.nyu.edu> Message-ID: References: <3F7A1AC0 DOT 3050503 AT cs DOT nyu DOT edu> Importance: Normal MIME-Version: 1.0 Content-Type: MULTIPART/MIXED; BOUNDARY="-559023410-1438311171-1064932416=:3193" Note-from-DJ: This may be spam ---559023410-1438311171-1064932416=:3193 Content-Type: TEXT/PLAIN; charset=US-ASCII On Tue, 30 Sep 2003, Yap on ExactGeom wrote: > Dear Igor, > > How are you? I noticed that you are an active developer of cygwin. > I really liked this platform and our Core Library is developed > on this mainly. I have a question: > > In my recent (June) installation of cygwin, there was an annoying > bug -- many of the files that I create are automatically given > the execute permission. [Since my "ls" will automatically show > me which files are executable, this is VERY annoying.] > But this behavior is not universal. If I have a non-executable > file, and I exit it using gvim, the file will become executable. > But using vim, it remains non-executable. But I don't think > the program is with a bad installation of gvim, because this > phenomenon shows up in other places. > > Heard of this bug before? > Thanks, Chee Hi, Chee, Great to hear from you. I'm redirecting this reply to the general Cygwin list, mostly to get this into the archives (because I know others are having this same problem). Also, this brings your question up before a large body of expertise -- perhaps someone else will find something I've missed. This is not a bug, but rather an artifact of the default permissions files get when written by Windows programs. Gvim is a pure Windows program, in contrast with vim, which is a Cygwin one. Also, vim writes files in-place, whereas gvim creates a new copy -- hence the change in permissions. Unfortunately, there isn't anything you can easily do to fix this. I have a script (attached) that I run periodically on my system to fix the executable permissions. It's not foolproof, but it's better than nothing (and it should err on the conservative side). Igor -- http://cs.nyu.edu/~pechtcha/ |\ _,,,---,,_ pechtcha AT cs DOT nyu DOT edu ZZZzz /,`.-'`' -. ;-;;,_ igor AT watson DOT ibm DOT 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 ---559023410-1438311171-1064932416=:3193 Content-Type: TEXT/PLAIN; charset=US-ASCII; name=fixexec Content-Transfer-Encoding: BASE64 Content-ID: Content-Description: Content-Disposition: attachment; filename=fixexec IyEvYmluL3NoDQojDQojIEEgc2NyaXB0IHRvIGZpeCB1cCBleGVjdXRhYmxl IHBlcm1pc3Npb25zLg0KIw0KIyBDb3B5cmlnaHQgKGMpIDIwMDIsIDIwMDMs IElnb3IgUGVjaHRjaGFuc2tpDQojDQojIFdyaXR0ZW4gYnkgSWdvciBQZWNo dGNoYW5za2kgPHBlY2h0Y2hhQGNzLm55dS5lZHU+DQojDQojIFRoaXMgcHJv Z3JhbSBpcyBkaXN0cmlidXRlZCB1bmRlciB0aGUgdGVybXMgb2YgdGhlIEdO VSBHZW5lcmFsIFB1YmxpYw0KIyBMaWNlbnNlLiAgRm9yIG1vcmUgaW5mb3Jt YXRpb24gc2VlIDxodHRwOi8vd3d3LmdudS5vcmcvbGljZW5zZXMvPi4NCiMN Cg0KUFJPR05BTUU9ImBiYXNlbmFtZSAiJDAiYCINClVTQUdFPSJVc2FnZTog JFBST0dOQU1FIFstdnwtLXZlcmJvc2VdIFstbnwtLWRyeS1ydW5dIFstYnwt LWJhdGNoXSBbZGlyc10iDQpEQVNIX1BSSU5UPQ0KRUNITz0NClRFRT1jYXQN CkJBVENIPQ0KZHVwMigpIHsNCiMgIHhhcmdzIC1yIC0wIC1uIDEgcGVybCAt ZSAnZXhpdCB1bmxlc3MgKCRhPXNoaWZ0KTtwcmludCBTVERFUlIgIiRhXG4i O3ByaW50ICIkYVw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kcz0wKTtleGl0KFxcXCRzKTtFTkR7ZXhpdChcXFwkcyl9XCIge30gXFw7 JzsNClBBVFBSRz0nLWV4ZWMgYXdrIFwiQkVHSU57Uz0xfU5SPTEmJi8kcC97 Uz0wO2V4aXQoMCl9e2V4aXQoUyl9RU5Ee2V4aXQoUyl9XCIge30gXFw7JzsN ClBBVEZJTFRFUj0iJChlY2hvICIkRVhFUEFUIiB8IHBlcmwgLXBlICdzL1xu JC8vO0BwPXNwbGl0KC8BLyk7Zm9yZWFjaCAkcChAcCl7JHA9fnNAKFsnIici JyIvXSlAXFxcXCQxQGc7JHA9IiciJFBBVFBSRyAkREJHUFJHIicgLW8iO307 JF89am9pbigiICIsQHApJykiDQoNCmV2YWwgInNldCAtLSAkRVhURklMVEVS ICRQQVRGSUxURVIiDQoNCmZvciBESVIgaW4gJERJUlM7IGRvDQogIGlmIFsg LWQgIiRESVIiIC1vIC1oICIkRElSIiBdOyB0aGVuDQogICAgRklMVEVSPSIt dHlwZSBmIg0KICBlbGlmIFsgLWYgIiRESVIiIF07IHRoZW4NCiAgICBGSUxU RVI9Ii1tYXhkZXB0aCAxIg0KICBmaQ0KICBpZiBbIC16ICIkQkFUQ0giIF07 IHRoZW4NCiAgICBmaW5kICIkRElSIiAkRklMVEVSIC1wZXJtIC0wMTAwIFwo ICIkQCIgXCggJERBU0hfUFJJTlQgLWV4ZWMgJEVDSE8gY2htb2QgYS14IHt9 IFw7IFwpIFwpDQogIGVsc2UNCiAgICBmaW5kICIkRElSIiAkRklMVEVSIC1w ZXJtIC0wMTAwIFwoICIkQCIgLXByaW50MCBcKSB8ICRURUUgfCB4YXJncyAt ciAtMCAtbiAxMDAwICRFQ0hPIGNobW9kIGEteCAtLQ0KICBmaQ0KZG9uZQ0K DQo= ---559023410-1438311171-1064932416=:3193 Content-Type: text/plain; charset=us-ascii -- 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/ ---559023410-1438311171-1064932416=:3193--