Commit Graph

13 Commits

Author SHA1 Message Date
Nedko Arnaudov 27e38d3f4b Fix -Werror=restrict
While one could be safe to assume that first input is read,
then symlink target is copied to user-mode, it causes compiler
warning.

So, don't reuse the symlink filename buffer for storing symlink
target.

../daemon/procfs.c:155:28: error: passing argument 2 to restrict-qualified parameter aliases with argument 1 [-Werror=restrict]
  155 |   ret = readlink(g_buffer, g_buffer, sizeof(g_buffer));
      |                  ~~~~~~~~  ^~~~~~~~

sys-libs/glibc-2.30-r8 (armv7a, but ISA probably does not matter)
gcc (Gentoo 9.3.0 p2) 9.3.0
2020-05-07 23:38:18 +03:00
Nedko Arnaudov abf820278b extra compiler warnings 2012-12-02 21:39:51 +02:00
Nedko Arnaudov ad6dbf1392 Fix memory leak on procfs read() failure 2012-11-19 05:32:21 +02:00
Nedko Arnaudov a913255273 ladishd: fix memory corruption bug and some bugs in procfs_get_process_file() 2010-09-21 23:53:23 +03:00
Nedko Arnaudov 98e11d4d17 daemon: fix memory leaks on error conditions 2009-12-29 09:00:13 +02:00
Nedko Arnaudov 5eb3930bc4 daemon: find app name when client appears 2009-12-11 00:11:03 +02:00
Nedko Arnaudov 540d2eb721 Make assert print error message to log 2009-09-20 18:48:42 +03:00
Nedko Arnaudov 5f832c8668 rename log macros 2009-09-20 18:23:42 +03:00
Nedko Arnaudov d38f42ffef common/debug.h -> log.h 2009-09-20 18:02:10 +03:00
Nedko Arnaudov 5e94e9dccc unify source copyright headers in ladishd 2009-07-29 21:08:27 +03:00
Nedko Arnaudov 177197f8ca tabs->spaces 2009-07-13 00:15:44 +03:00
Nedko Arnaudov d364193985 waf buildable daemon 2009-07-12 22:56:19 +03:00
Nedko Arnaudov 5877daffe0 Improve directory layout 2009-07-12 15:05:55 +03:00