History log of /external/ltp/testcases/kernel/syscalls/symlink/symlink01.c
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
2a993ed0aeb23dd0609aaeb606acf9d4172b365f 24-Jan-2017 George Burgess IV <gbiv@google.com> Cherrypick a change to drop getcwd prototypes.

This is needed so that we can turn clang FORTIFY on. Otherwise, we get
errors about bad redeclarations of getcwd.

Cherrypicked change:

commit f3ce2d59c97a49a15520f4551d74f9a76e7431d3
Author: Mike Frysinger <vapier@chromium.org>
Date: Tue Aug 23 04:44:38 2016 +0000

symlink01: drop bogus getcwd prototype

Signed-off-by: Mike Frysinger <vapier@chromium.org>

Bug: 32073964
Test: Builds with clang FORTIFY; vts-serving-staging-ltp passes for
symlink01.c.

Change-Id: I58150394b6eebed154e6f3d11f3fa5ba8fd05ee5
/external/ltp/testcases/kernel/syscalls/symlink/symlink01.c
d6d11d08678aac1ed2c370ea8e42e5f45aea07be 09-Mar-2015 Cyril Hrubis <chrubis@suse.cz> Introduce tst_parse_opts()

The pattern that was used in all testcases is:

const char *msg;

msg = parse_opts(...);
if (msg)
tst_brkm(TBROK, NULL, "OPTION PARSING ERROR - %s", msg);

This change simplifies the steps to just calling:

tst_parse_opts(...);

Signed-off-by: Cyril Hrubis <chrubis@suse.cz>
/external/ltp/testcases/kernel/syscalls/symlink/symlink01.c
aabb8340f63ed31afe995fd97795e542dc68b93c 04-Feb-2015 Cyril Hrubis <chrubis@suse.cz> Include usctest.h in test.h

Signed-off-by: Cyril Hrubis <chrubis@suse.cz>
/external/ltp/testcases/kernel/syscalls/symlink/symlink01.c
605fa3362fd7cef0baa2131be32cf44661783d3e 04-Feb-2015 Cyril Hrubis <chrubis@suse.cz> Get rid of TEST_CLEANUP

Special thanks to Coccinelle for making this easy job.

Signed-off-by: Cyril Hrubis <chrubis@suse.cz>
/external/ltp/testcases/kernel/syscalls/symlink/symlink01.c
563a8b70f47535fe1172700d96777083e8005110 10-Jun-2014 Cyril Hrubis <chrubis@suse.cz> syscalls/symlink01: Fix test messages

The test messages were wrongly disabled in:

commit e38b961c385192f0d804914b77bd590734b42e75
Author: Cyril Hrubis <chrubis@suse.cz>
Date: Mon Jun 2 17:20:57 2014 +0200

Remove STD_FUNCTIONAL_TEST

...

Signed-off-by: Cyril Hrubis <chrubis@suse.cz>
/external/ltp/testcases/kernel/syscalls/symlink/symlink01.c
e38b961c385192f0d804914b77bd590734b42e75 02-Jun-2014 Cyril Hrubis <chrubis@suse.cz> Remove STD_FUNCTIONAL_TEST

Only small part of the testcases was using STD_FUNCTIONAL_TEST and these
that were actually using it mostly misused the interface or used it only
to disable the tst_rest(TPASS, "sycall passed") message.

The default value was STD_FUNCTION_TEST enabled, so this only removes
code that is not executed in LTP testrun and there should be no
functional changes.

Signed-off-by: Cyril Hrubis <chrubis@suse.cz>
/external/ltp/testcases/kernel/syscalls/symlink/symlink01.c
0b9589f3f9c0345b29cfcf7da5a1253c708303eb 27-May-2014 Cyril Hrubis <chrubis@suse.cz> testcases: Constify char *msg variable.

The parse_opts() now returns const char * instead of char * this commit
fixes all warnings caused by the change.

Signed-off-by: Cyril Hrubis <chrubis@suse.cz>
/external/ltp/testcases/kernel/syscalls/symlink/symlink01.c
9c31ad210f817055592163cbc648032fcbe8b130 14-May-2014 Cyril Hrubis <chrubis@suse.cz> lib, tests: Rename get_tst_tmpdir() to tst_get_tmpdir()

Signed-off-by: Cyril Hrubis <chrubis@suse.cz>
/external/ltp/testcases/kernel/syscalls/symlink/symlink01.c
c57fba5535abf457e33dd7a986b6c512d95cdef6 10-Apr-2014 Mike Frysinger <vapier@gentoo.org> testcases/kernel/syscalls: clean up old style prototypes

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
/external/ltp/testcases/kernel/syscalls/symlink/symlink01.c
d59a659cd639ca2780b00049d102acd2a783d585 07-Mar-2013 Caspar Zhang <caspar@casparzhang.com> s/Tst_count/tst_count/ to avoid CamelCase

when using latest checkpatch.pl, CamelCase variables are not encouraged,
this patch does a batch update to replace all var `Tst_count` with
`tst_count`.

Signed-off-by: Caspar Zhang <caspar@casparzhang.com>
Acked-by: Wanlong Gao <gaowanlong@cn.fujitsu.com>
/external/ltp/testcases/kernel/syscalls/symlink/symlink01.c
354ebb48db8e66a853a58379a4808d5dcd1ceac3 07-Dec-2012 Wanlong Gao <gaowanlong@cn.fujitsu.com> cleanup code indent

Cleanup the code indent using:

find . -name *.c -exec Lindent {} \;

It's really a big change, but can fix almost all of
the indent problem in C code, although we can't
ensure all of the changes are right, but the error
changes are really few.

Signed-off-by: Wanlong Gao <gaowanlong@cn.fujitsu.com>
/external/ltp/testcases/kernel/syscalls/symlink/symlink01.c
89af32a63ce8a780ea39337339e14caae244b5a4 24-Oct-2012 Cyril Hrubis <chrubis@suse.cz> Another semiautomated cleanup.

This patch removes all dumbious comments as:

/* loop counter */

/* message returned from from parse_opts */

/* parse standard options */

Various variations on:

int i; /* ... counter .... */

Signed-off-by: Cyril Hrubis <chrubis@suse.cz>
/external/ltp/testcases/kernel/syscalls/symlink/symlink01.c
fed9641096e27f79a0f2d9adfe9839dd8d11dc0f 24-Oct-2012 Wanlong Gao <gaowanlong@cn.fujitsu.com> Fix FSF address

find . -type f -exec sed -i 's/the Free Software Foundation, Inc., 59/the Free Software Foundation, Inc.,/g;s/Temple Place - Suite 330, Boston MA 02111-1307, USA/51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA/g' {} \;

Signed-off-by: Wanlong Gao <gaowanlong@cn.fujitsu.com>
/external/ltp/testcases/kernel/syscalls/symlink/symlink01.c
0ae003ba8b1ab26b745ab5a17bb97af3b0e1c923 19-Dec-2010 Garrett Cooper <yanegomi@gmail.com> Fix remaining compilation errors.

Signed-off-by: Garrett Cooper <yanegomi@gmail.com>
/external/ltp/testcases/kernel/syscalls/symlink/symlink01.c
1e6f5a673655551de5734ff31ef48cd63b604e6d 19-Dec-2010 Garrett Cooper <yanegomi@gmail.com> Resolving all compile errors via a script

This may leave dupe calls to tst_exit in main, but those are easier
to deal (and much less) than no-compile scenarios.

As a side-effect, fix all trailing whitespace issues.

Signed-off-by: Garrett Cooper <yanegomi@gmail.com>
/external/ltp/testcases/kernel/syscalls/symlink/symlink01.c
1569799abe4296fc5ca50ede305c1eb2ac482422 18-Dec-2010 Garrett Cooper <yanegomi@gmail.com> Fix some tests. Remove all externs to Tst_count.

Signed-off-by: Garrett Cooper <yanegomi@gmail.com>
/external/ltp/testcases/kernel/syscalls/symlink/symlink01.c
2c28215423293e443469a07ae7011135d058b671 16-Dec-2010 Garrett Cooper <yanegomi@gmail.com> Style and conformance changes.

1. Strip all leading space.
2. Move tst_exit() to main().
3. Remove tst_exit() from cleanup().
4. Remove cluebat comments.
5. Reduce some unnecessary whitespace.

Signed-off-by: Garrett Cooper <yanegomi@gmail.com>
/external/ltp/testcases/kernel/syscalls/symlink/symlink01.c
45e285d46ab47b0ff76c88acb5ba97b0bd5f753d 22-Nov-2010 Garrett Cooper <yanegomi@gmail.com> Remove useless casts.

Signed-off-by: Garrett Cooper <yanegomi@gmail.com>
/external/ltp/testcases/kernel/syscalls/symlink/symlink01.c
923b23ff1fd1b77bd895949f9a6b4508c6485f33 02-Nov-2009 subrata_modak <subrata_modak> Other compiler warning fixes: this is another chunk of compiler warning fixes in LTP tests, related to printf format strings. They have multiple causes:
- most of them are caused by %d used for the TEST_RETURN variable (as in a previous patch),
- off_t are cast to (int64_t) and PRId64 output specifier is used for them,
- other types are cast to (intmax_t) or (uintmax_t) and use the %jd or %ju (C99) output specifier. I've used this solution because it's generally correct, easy to use solution that is portable and (IMHO) more readable than using PRId64/PRIu64 and a cast (which you generally can't avoid). This way, there's only a cast,
- in ioperm test, address should be declared as unsigned long (according to ioperm(2)),
- other little fixes (foo vs. *foo, %S vs. %s, %0 vs. %o).
Signed-off-by: Jiri Palecek <jpalecek@web.de>.
/external/ltp/testcases/kernel/syscalls/symlink/symlink01.c
e5fce93e89e9e834f43e66d0c62b7b14bd2991a9 28-Aug-2009 vapier <vapier> fix/cleanup most printf strings and errno handling
/external/ltp/testcases/kernel/syscalls/symlink/symlink01.c
56207cec7732e09c216c751c0b5f88a242bacae6 23-Mar-2009 subrata_modak <subrata_modak> Coding Syle Cleanups. Signed-Off-By: <michal.simek@petalogix.com>.
/external/ltp/testcases/kernel/syscalls/symlink/symlink01.c
054a7f329040b6d274d82b7271b98064f048c286 17-Mar-2009 subrata_modak <subrata_modak> Symlink01: Not Run Invalid Tests v2: Renumber testcases in the symlink01 file, reflecting some added tests: http://article.gmane.org/gmane.linux.ltp/6987. Enabled 2 seems invalid tests, which caused link01 and rename01A test cases failure,Looking from the code, the first failure looks indeed broken according to its own comment,The second one is because it makes assumption that the link and target files are located in different filesystems, which is incorrect.This patch reverts some parts of the above patch, and return it to its original behavior. I have also added some comments there to explain so. Signed-off-by: CAI Qian <caiqian@cclom.cn>.
/external/ltp/testcases/kernel/syscalls/symlink/symlink01.c
bdbaec51a423e715c2b03ed9e497e9a1fba6103e 26-Feb-2009 subrata_modak <subrata_modak> Clean Trailing Tab: Signed-off-by: Michal Simek <monstr@monstr.eu>.
/external/ltp/testcases/kernel/syscalls/symlink/symlink01.c
4bb656a129f7507823e9e6d6b98b1a02fd80ef89 26-Feb-2009 subrata_modak <subrata_modak> Clear Trailing Whitespace. Signed-off-by: Michal Simek <monstr@monstr.eu>.
/external/ltp/testcases/kernel/syscalls/symlink/symlink01.c
a9263066f3078cfd0b2459a7e3f0b2826cafd711 26-Feb-2009 subrata_modak <subrata_modak> Fix return(NULL) -> return NULL. Signed-off-by: Michal Simek <monstr@monstr.eu>.
/external/ltp/testcases/kernel/syscalls/symlink/symlink01.c
134e896cc5a60e96b32807f5be09e99099596f5d 26-Feb-2009 subrata_modak <subrata_modak> fix return(1) -> return 1. Signed-off-by: Michal Simek <monstr@monstr.eu>.
/external/ltp/testcases/kernel/syscalls/symlink/symlink01.c
43337a3cf6f8809647cf9fc6c0054241f44b1fb1 26-Feb-2009 subrata_modak <subrata_modak> Fix return(0) to return 0. Signed-off-by: Michal Simek <monstr@monstr.eu>.
/external/ltp/testcases/kernel/syscalls/symlink/symlink01.c
62f3d674fc62e9a6914c8806e3c878fb5e2d48aa 31-Dec-2008 subrata_modak <subrata_modak> Renumber testcases in the symlink01 file, reflecting some added tests: The indexes of tests in th symlink01 test are incorrect, which causes broken test results due to eg. unlink test invoked as part of the chmod tests. This patch fixes that. Signed-Off-By: Jiri Palecek <jpalecek@web.de>.
/external/ltp/testcases/kernel/syscalls/symlink/symlink01.c
cc378eb0170de87344442e20e9e319df35049fda 18-Dec-2008 subrata_modak <subrata_modak> The problem is noticed only for these 2 tests lstat01A_64 and stat04_64. Analysis of the problem showed that these tests are called from runtest/syscall file. The problem is noticed because the symlink01.c file doesn't have implementation to take care lstat01A_64 and stat04_64 arguments that are passed in the file runtest/syscall. Solution: Simple solution is to remove lines.
lstat01A_64 symlink01 -T lstat01_64
stat04_64 symlink01 -T stat04_64
from runtest/syscall.
Other option is to provide feature in symlink01.c so that it can execute these tests successfully. I worked on one such patch. Please have a look. This runs same tests for lstat01A_64 and stat04_64 as is run for lstat01 and stat04 respectively. Signed-Off-By: Sharyathi Nagesh <sharyath@in.ibm.com>.
/external/ltp/testcases/kernel/syscalls/symlink/symlink01.c
44d51c3f0670961149ba486a678cfc13b37cce2c 17-Oct-2008 subrata_modak <subrata_modak> When compiling with -D_FORTIFY_SOURCE=2 following buffer-overflow gets detected:
Starting program: /root/ltp/ltp-full-20080916/testcases/kernel/syscalls/symlink/symlink01
symlink01 1 PASS : Creation of symbolic link file to no object file is ok
symlink01 2 PASS : Creation of symbolic link file to no object file is ok
symlink01 3 PASS : Creation of symbolic link file and object file via symbolic link is ok
symlink01 4 PASS : Creating an existing symbolic link file error is caught
*** buffer overflow detected ***: /root/ltp/ltp-full-20080916/testcases/kernel/syscalls/symlink/symlink01 terminated
======= Backtrace: =========
/lib64/libc.so.6(__chk_fail+0x2f)[0x2b5ae730f31f]
/lib64/libc.so.6[0x2b5ae730e3c3]
/root/ltp/ltp-full-20080916/testcases/kernel/syscalls/symlink/symlink01[0x4048fe]
/root/ltp/ltp-full-20080916/testcases/kernel/syscalls/symlink/symlink01[0x403e7b]
/root/ltp/ltp-full-20080916/testcases/kernel/syscalls/symlink/symlink01[0x4047b7]
/lib64/libc.so.6(__libc_start_main+0xf4)[0x2b5ae725a184]
/root/ltp/ltp-full-20080916/testcases/kernel/syscalls/symlink/symlink01[0x401c39]

(gdb) bt
#0 0x00002b5ae726cbb5 in raise () from /lib64/libc.so.6
#1 0x00002b5ae726dfb0 in abort () from /lib64/libc.so.6
#2 0x00002b5ae72a332b in __libc_message () from /lib64/libc.so.6
#3 0x00002b5ae730f31f in __chk_fail () from /lib64/libc.so.6
#4 0x00002b5ae730e3c3 in __strcat_chk () from /lib64/libc.so.6
#5 0x00000000004048fe in creat_path_max (path1=0x409d88 "object", path2=<value optimized out>, path3=<value optimized out>) Read from remote host
#6 0x0000000000403e7b in do_syscalltests (tcs=0x50cec0) at symlink01.c:958
#7 0x00000000004047b7 in main (argc=<value optimized out>, argv=<value optimized out>) at symlink01.c:569 (gdb) up
#1 0x00002b5ae726dfb0 in abort () from /lib64/libc.so.6 (gdb)
#2 0x00002b5ae72a332b in __libc_message () from /lib64/libc.so.6 (gdb)
#3 0x00002b5ae730f31f in __chk_fail () from /lib64/libc.so.6 (gdb)
#4 0x00002b5ae730e3c3 in __strcat_chk () from /lib64/libc.so.6 (gdb)
#5 0x00000000004048fe in creat_path_max (path1=0x409d88 "object", path2=<value optimized out>, path3=<value optimized out>) at symlink01.c:844
844 strcat(full_path, "Z");
Variable full_path exceeds PATH_MAX limit in creat_path_max(), to avoid a buffer overflow the size of full_path needs to be incremented by one. Signed-off-by: Daniel Gollub <dgollub@suse.de>.
/external/ltp/testcases/kernel/syscalls/symlink/symlink01.c
e4cf63d598df31af0d23e886073910dc302cb648 21-Jan-2008 subrata_modak <subrata_modak> Fixing missing argument for open() function when O_CREAT is in the flag, by, Yi Xu <yxu@suse.de>
/external/ltp/testcases/kernel/syscalls/symlink/symlink01.c
ffd8924c2ea8d25b3380f1a50cf61a81c64f2dea 04-Dec-2006 vapier <vapier> use memcmp() instead of legacy bcmp()
/external/ltp/testcases/kernel/syscalls/symlink/symlink01.c
e555fd6424452cfa1708d526c78577720fc5d492 26-May-2006 vapier <vapier> add missing ;
/external/ltp/testcases/kernel/syscalls/symlink/symlink01.c
cff4af016805c764c391c473d4c95b999dcdf148 11-Feb-2006 vapier <vapier> remove extraneous whitespace usage in tst_* functions
/external/ltp/testcases/kernel/syscalls/symlink/symlink01.c
f7298c78ccec20dbf2f96a83265c38811655241a 05-Dec-2005 mridge <mridge> Updates from Jennifer Monk to enable compiling w/o errors using XLC
/external/ltp/testcases/kernel/syscalls/symlink/symlink01.c
066dbd4a8c82c638df741f5b9d2dc753ba609702 28-Oct-2004 robbiew <robbiew> Applied long path name patch from Michael Vieths:
=================================================================
I was running ltp-20031106 and encountered directory length issues in
symlink01, execve03, and creat06. If LTP is run in a directory with a
long path name, these tests will produce unexpected results. I've
attached patches to correct this, by increasing buffer size to 1000 in
creat06 (from 40) and symlink01 (from 100) and by altering calls to
getcwd in symlink01.c. I tested them with ltp-20041007 to make sure
they'd apply.

--
Michael Vieths
=================================================================
/external/ltp/testcases/kernel/syscalls/symlink/symlink01.c
a70576c4834d89f937e46698fef4114736cce4d7 04-Mar-2003 robbiew <robbiew> Removed "extern int errno" lines and replaced with "#include <errno.h>"
/external/ltp/testcases/kernel/syscalls/symlink/symlink01.c
865695bbc89088b9526ea9045410e5afb70a985c 28-Aug-2001 plars <plars> restructuring work done, and adding about 400 testcases
/external/ltp/testcases/kernel/syscalls/symlink/symlink01.c