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]

RE: Questions on cygwin filemode in WindowsXP


I was wondering about that, myself, recently.

According to the fileutils/ls info page:
> Following the permission bits is a single character that specifies
> whether an alternate access method applies to the file.  When that
> character is a space, there is no alternate access method.  When it
> is a printing character (e.g., `+'), then there is such a method.

Since "alternate access methods" are, as I understand it, under control of
Windows, this may be off-topic:  For my general education, I'd also be
interested in what the "alternate access method", how one can set it, and
how one might use it.

Since "+" moves from test.php to test.php~, xemacs evidently renames
test.php to test.php~ before saving the modified file under the original
name (test.php).

- Barry

-----Original Message-----
From: Yufeng Xiong
Sent: Thursday, April 01, 2004 9:48 AM
To: cygwin@cygwin.com
Subject: Questions on cygwin filemode in WindowsXP

Hi All,

I'm using the xemacs comes with Cygwin on WindowXP for file editing, but it
has a problem with file mode:

My original file (test.php) has the following mode using "ls -l":

-rwx------+            .............................   test.php

after I edit it with xemacs, it generated a file called test.php~, which is
like an exact copy of the old file, but
the original file mode changed, "ls -l" showed:

-rwx---------           .............................. test.php
-rwx---------+         .............................. test.php~

Now I have some questions:

1. What is the '+' in the file mode? I know it has something to do with file
permission, after
the editing, my web server/PHP does not have permission to open test.php
anymore
2. How do I set the '+' in mode manually? I used 'fstat' on the two files
and it shows the exact
same mode (o100700).
3. Why xemacs changed the file mode? Could it be because of different file
system?

Thanks for any help.

Yufeng


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

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