summaryrefslogtreecommitdiffstats
path: root/source4/lib/socket/socket_unix.c
diff options
context:
space:
mode:
authorMartin Schwenke <martin@meltin.net>2014-06-11 16:58:20 +1000
committerMartin Schwenke <martins@samba.org>2014-06-12 05:40:10 +0200
commitdd672431c0b8a3a416f6c244b131074d868250cc (patch)
tree719b05607ea558d15f25889e4bcedd2302c0d23c /source4/lib/socket/socket_unix.c
parent8fa8b3b397853a29f12875454b890fa5c7b8cda8 (diff)
downloadsamba-dd672431c0b8a3a416f6c244b131074d868250cc.tar.gz
samba-dd672431c0b8a3a416f6c244b131074d868250cc.tar.xz
samba-dd672431c0b8a3a416f6c244b131074d868250cc.zip
ctdb-common: No dynamic memory allocation in mkdir_p()
Allocate an array of size PATH_MAX on the stack instead. To stop unnecessary recursion, try to create the desired directory before creating ancestors and only create ancestors on ENOENT. Signed-off-by: Martin Schwenke <martin@meltin.net> Reviewed-by: Amitay Isaacs <amitay@gmail.com>
Diffstat (limited to 'source4/lib/socket/socket_unix.c')
0 files changed, 0 insertions, 0 deletions