1.1 --- a/tests/dstest_block_client_simple.cc Thu Jan 27 23:45:17 2022 +0100
1.2 +++ b/tests/dstest_block_client_simple.cc Sun Feb 06 18:05:23 2022 +0100
1.3 @@ -1,7 +1,7 @@
1.4 /*
1.5 * Test dataspace operations.
1.6 *
1.7 - * Copyright (C) 2020, 2021 Paul Boddie <paul@boddie.org.uk>
1.8 + * Copyright (C) 2020, 2021, 2022 Paul Boddie <paul@boddie.org.uk>
1.9 *
1.10 * This program is free software; you can redistribute it and/or
1.11 * modify it under the terms of the GNU General Public License as
1.12 @@ -33,36 +33,17 @@
1.13 {
1.14 if (argc < 2)
1.15 {
1.16 - printf("Need a filename, optional user identifier, and optional repetition.\n");
1.17 + printf("Need a filename and optional repetition.\n");
1.18 return 1;
1.19 }
1.20
1.21 /* Obtain filename and access parameters. */
1.22
1.23 char *filename = argv[1];
1.24 - bool have_uid = (argc > 2) && strlen(argv[2]);
1.25 - sys_uid_t uid = have_uid ? atoi(argv[2]) : 0;
1.26 - int repetition = argc > 3 ? atoi(argv[3]) : 10;
1.27 + int repetition = argc > 2 ? atoi(argv[2]) : 10;
1.28 file_t *file;
1.29
1.30 - /* With a user, open a user-specific file opener. */
1.31 -
1.32 - if (have_uid)
1.33 - {
1.34 - l4_cap_idx_t opener = client_open_for_user((user_t) {uid, uid, 0022});
1.35 -
1.36 - if (l4_is_invalid_cap(opener))
1.37 - {
1.38 - printf("Could not obtain opener for file.\n");
1.39 - return 1;
1.40 - }
1.41 -
1.42 - /* Invoke the open method to receive the file reference. */
1.43 -
1.44 - file = client_open_using(filename, O_RDWR, opener);
1.45 - }
1.46 - else
1.47 - file = client_open(filename, O_RDWR);
1.48 + file = client_open(filename, O_RDWR);
1.49
1.50 if (file == NULL)
1.51 {