*/
#include <stdlib.h>
+#include <sys/stat.h>
#include <image_util.h>
#include <unistd.h> /* access */
unsigned int nimpcolors;
} bmp_dib_v3_header_t = { 0x28, 0, 0, 1, 24, 0, 0, 0, 0, 0, 0 };
+ struct stat file_info;
+ if (0 != lstat(file, &file_info)) {
+ MAPS_LOGE("lstat failed"); //LCOV_EXCL_LINE
+ return false;
+ }
+ if (S_ISLNK(file_info.st_mode)) {
+ MAPS_LOGE("symbolic linked file"); //LCOV_EXCL_LINE
+ return false;
+ }
+
unsigned int *blocks;
FILE *fp = fopen(file, "w+");
int i;