Rizin
unix-like reverse engineering framework and cli tools
chmod.c File Reference
#include <rz_util.h>
#include <stdbool.h>
#include <stdlib.h>
#include <string.h>
#include <sys/stat.h>

Go to the source code of this file.

Functions

RZ_API bool rz_file_chmod (const char *file, const char *mod, int recursive)
 

Function Documentation

◆ rz_file_chmod()

RZ_API bool rz_file_chmod ( const char *  file,
const char *  mod,
int  recursive 
)

Definition at line 19 of file chmod.c.

19  {
20 #if __UNIX__
21  oper = '=';
22  mode = 0;
23  if (!parsemode(mod)) {
24  return false;
25  }
26  return chmodr(file, recursive);
27 #else
28  return false;
29 #endif
30 }
int mod(int a, int b)
Definition: crypto_rot.c:8
const char int mode
Definition: ioapi.h:137
Definition: gzappend.c:170

References mod().

Referenced by rz_main_rz_bin().