Texedit "disards" file permissions

From: Max Weninger <max.weninger_at_eunet.at>
Date: Sun, 24 Feb 2002 02:03:26 +0100

Hi,

Just tried to find out why this happens.
texedit discards any file permissions e.g. exec and creates always a
file with 644. Which is bad if you edit a shell script. But I did not
found any way to set the permissions explicitly. Did I miss something?

I looked at FileManager::saveFile where the following is used

...
     QFile fl( fn );
        
     if ( !fl.open( IO_WriteOnly|IO_Raw ) ) {
...

How can I get the permissions of an existing file?
Is there no support in qt and must I use libc?

Regards

Max

-- 
_______________________________________________________________
      \
     o/\_          DI Max Weninger
    <\__,\         Email (max.weninger_at_eunet.at)
     ">.  |
      ` .-|
         . \
          . \
          .-|
_________._|____________________________________________________
Received on Sat Feb 23 2002 - 16:57:31 EST

This archive was generated by hypermail 2.2.0 : Mon Jul 25 2005 - 17:30:53 EDT