[Gambas-user] Stat() Auth and Mode (misunderstanding or bug?)

Willy Raets willy at ...2734...
Thu Sep 18 01:50:31 CEST 2014


Hi all,

Following was brought to my attention:

To reproduce make a file named test in your home folder.
Create a console project in IDE with any name you like

Public Sub Main()

  Dim sPath As String
  sPath = User.Home &/ "test"
  With Stat(sPath)
    Print "Auth: " & .Auth
    Print "Mode: " & .Mode
 End With

End

Run the project.
Output is:

Auth: rw-r--r--
Mode: 420

Should mode not be 644 or do I misunderstand Stat().Mode?

user rw- = 6
group r-- = 4
other r-- = 4

My info:

[System]
Gambas=3.5.4
OperatingSystem=Linux
Kernel=3.2.0-68-generic
Architecture=x86
Distribution=Linux Mint 13 Maya
Desktop=MATE
Theme=QGtk
Language=en_GB.UTF-8
Memory=2446M
[Libraries]
Cairo=libcairo.so.0.0.0
Cairo=libcairo.so.2.11000.2
Curl=libcurl.so.4.2.0
DBus=libdbus-1.so.3.5.8
GStreamer=libgstreamer-0.10.so.0.30.0
GStreamer=libgstreamer-1.0.so.0.1.0
GTK+=libgtk-x11-2.0.so.0.2400.10
Poppler=libpoppler.so.19.0.0
Qt4=libQtCore.so.4.8.1
SDL=libSDL-1.2.so.0.11.3

-- 
Kind regards,

Willy (aka gbWilly)

http://gambasshowcase.org/
http://howtogambas.org
http://gambos.org








More information about the User mailing list