blob: bc2ee96cab8ec3cdc6f6effb0682d5aff8ee89bf [file] [log] [blame]
Glenn L McGrath393183d2003-05-26 14:07:50 +00001/* vi: set sw=4 ts=4: */
2/*
3 * Utility routines.
4 *
5 * Copyright (C) (C) 2003 Vladimir Oleynik <dzo@simtreas.ru>
6 *
Denys Vlasenko0ef64bd2010-08-16 20:14:46 +02007 * Licensed under GPLv2 or later, see file LICENSE in this source tree.
Glenn L McGrath393183d2003-05-26 14:07:50 +00008 */
Denys Vlasenkoebe6d9d2017-10-05 14:40:24 +02009#include "libbb.h"
Glenn L McGrath393183d2003-05-26 14:07:50 +000010
11/*
12 This function make special for recursive actions with usage
13 concat_path_file(path, filename)
Denis Vlasenko5dd7ef02006-12-26 03:36:28 +000014 and skipping "." and ".." directory entries
Glenn L McGrath393183d2003-05-26 14:07:50 +000015*/
16
Denis Vlasenkodefc1ea2008-06-27 02:52:20 +000017char* FAST_FUNC concat_subpath_file(const char *path, const char *f)
Glenn L McGrath393183d2003-05-26 14:07:50 +000018{
Denis Vlasenko16abcd92007-04-13 23:59:52 +000019 if (f && DOT_OR_DOTDOT(f))
Glenn L McGrath393183d2003-05-26 14:07:50 +000020 return NULL;
21 return concat_path_file(path, f);
22}