Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

lgtm issues for os-impl-posix-files.c, osapi-filesys.c #333

Closed
avan989 opened this issue Dec 26, 2019 · 2 comments · Fixed by #633 or #639
Closed

lgtm issues for os-impl-posix-files.c, osapi-filesys.c #333

avan989 opened this issue Dec 26, 2019 · 2 comments · Fixed by #633 or #639
Milestone

Comments

@avan989
Copy link
Contributor

avan989 commented Dec 26, 2019

Is your feature request related to a problem? Please describe.
os-impl-posix-files.c

line 240:

if ( chmod(local_path, st.st_mode) < 0 )
--
  | The filename being operated upon was previously checked, but the underlying file may have been changed since then.

osapi-filesys.c

line 330:
OS_FileSysStopVolume_Impl(local_id);
--
  | This expression has no effect (because OS_FileSysStopVolume_Impl has no external side effects).

Requester Info
Anh Van, NASA Goddard

@avan989
Copy link
Contributor Author

avan989 commented Dec 26, 2019

Reference #326:

os-impl-posix-files.c:
possible solution use open() to get file descriptor with O_PATH flag but it is Linux-specific (non-posix).

osapi-filesys.c:
On second look maybe the OS_FileSysStopVolume_Impl shouldn't be entirely empty here.

@skliper skliper added this to the 5.1.0 milestone Jan 15, 2020
@skliper skliper removed this from the 5.1.0 milestone May 13, 2020
skliper added a commit to skliper/osal that referenced this issue Oct 22, 2020
skliper added a commit to skliper/osal that referenced this issue Oct 22, 2020
skliper added a commit to skliper/osal that referenced this issue Oct 22, 2020
@astrogeco astrogeco added this to the 6.0.0 milestone Nov 2, 2020
astrogeco added a commit that referenced this issue Nov 2, 2020
@jphickey
Copy link
Contributor

FYI - turns out this PR broke our VxWorks build:

/home/jphickey/cfecfs/github/osal/src/os/portable/os-impl-posix-files.c: In function 'OS_FileChmod_Impl':
/home/jphickey/cfecfs/github/osal/src/os/portable/os-impl-posix-files.c:202: error: too few arguments to function 'open'
make[7]: *** [osal/vxworks_impl/CMakeFiles/osal_vxworks_impl.dir/__/portable/os-impl-posix-files.c.obj] Error 1
make[6]: *** [osal/vxworks_impl/CMakeFiles/osal_vxworks_impl.dir/all] Error 2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
4 participants