bug-gnustep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug #29920] problem when opening a file in /sys using NSString stringWi


From: Riccardo mottola
Subject: [bug #29920] problem when opening a file in /sys using NSString stringWithContentsOfFile
Date: Wed, 19 May 2010 21:59:03 +0000
User-agent: Opera/9.80 (Windows NT 5.0; U; en) Presto/2.5.24 Version/10.53

URL:
  <http://savannah.gnu.org/bugs/?29920>

                 Summary: problem when opening a file in /sys using NSString
stringWithContentsOfFile
                 Project: GNUstep
            Submitted by: rmottola
            Submitted on: Wed 19 May 2010 09:59:03 PM GMT
                Category: Base/Foundation
                Severity: 3 - Normal
              Item Group: Bug
                  Status: None
                 Privacy: Public
             Assigned to: None
             Open/Closed: Open
         Discussion Lock: Any

    _______________________________________________________

Details:

File NSData.m: 265. In readContentsOfFile read of file
(/sys/class/power_supply/BAT0/present) contents failed - No such file or
directory

however the same file can be read using "cat" from the command line and
fopen() works just fine on it.

It is not due to the content either, I copied the file with a copy with the
same permissions and it works just fine:
-r--r--r-- 1 root root 4096 May 19 23:22
/sys/class/power_supply/BAT0/present
-r--r--r-- 1 root root 2 May 19 23:32 /home/multix/present

the second file reads fine into a string, the first not.




    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?29920>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]