It's UWAweek 19

help2002

This forum is provided to promote discussion amongst students enrolled in CITS2002 Systems Programming.
Please consider offering answers and suggestions to help other students! And if you fix a problem by following a suggestion here, it would be great if other interested students could see a short "Great, fixed it!"  followup message.
Displaying selected article
Showing 1 of 1168 articles.
Currently 2 other people reading this forum.


SVG not supported

Login to reply

👍?
helpful

So I was chatting with a friend who said he was getting some weird file permissions when trying to create a file, so we ran the following code on our respective outputs and ended up with different file permissions: #include <fcntl.h> #include <unistd.h> int main(void) { int dest_fd = open("/home/leweixu/CITS2002/project2/test0666", O_WRONLY | O_CREAT | O_TRUNC, 0666); close(dest_fd); } We are both running cc 11.4.0 and ubuntu 22.04 WSL2 for Windows.

The University of Western Australia

Computer Science and Software Engineering

CRICOS Code: 00126G
Written by [email protected]
Powered by history
Feedback always welcome - it makes our software better!
Last modified  8:08AM Aug 25 2024
Privacy policy