This is the mail archive of the
cygwin-developers@sourceware.cygnus.com
mailing list for the Cygwin project.
chown and chmod for /dev/*
- To: Corinna Vinschen <corinna@vinschen.de>
- Subject: chown and chmod for /dev/*
- From: Egor Duda <deo@logos-m.ru>
- Date: Mon, 2 Aug 1999 22:26:03 +0400
- CC: cygwin-developers <cygwin-developers@sourceware.cygnus.com>, Chris Faylor <cgf@cygnus.com>
- Organization: DEO
- Reply-To: Egor Duda <deo@logos-m.ru>
Hi!
If one thy to call "chown" of "chmod" functions for cygwin-emulated
files like /dev/tty0 they'll return (-1) and error "path not found".
It doesn't seem to be a major issue -- the only place i've seen, which
is affected by this is sshd, which prints a warning message. But it
certanly could break other programs.
Quick solution is to check win32_path.is_device() in this functions.
Or files like <win32p_path_for_"/">\dev\tty0 should be created to hold
security info -- as more unix-like way?
Egor. mailto:deo@logos-m.ru ICQ 5165414 FidoNet 2:5020/496.19