rda-python-setuid 1.0.2__py3-none-any.whl → 1.0.3__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- rda_python_setuid/pywrapper.c +6 -7
- {rda_python_setuid-1.0.2.dist-info → rda_python_setuid-1.0.3.dist-info}/METADATA +1 -1
- rda_python_setuid-1.0.3.dist-info/RECORD +10 -0
- {rda_python_setuid-1.0.2.dist-info → rda_python_setuid-1.0.3.dist-info}/WHEEL +1 -1
- rda_python_setuid-1.0.2.dist-info/RECORD +0 -10
- {rda_python_setuid-1.0.2.dist-info → rda_python_setuid-1.0.3.dist-info}/entry_points.txt +0 -0
- {rda_python_setuid-1.0.2.dist-info → rda_python_setuid-1.0.3.dist-info}/licenses/LICENSE +0 -0
- {rda_python_setuid-1.0.2.dist-info → rda_python_setuid-1.0.3.dist-info}/top_level.txt +0 -0
rda_python_setuid/pywrapper.c
CHANGED
|
@@ -54,6 +54,7 @@ int main(int argc, char *argv[]) {
|
|
|
54
54
|
char *name;
|
|
55
55
|
char cname[80], prog[255];
|
|
56
56
|
char file[] = __FILE__;
|
|
57
|
+
char *fpath = dirname(file);
|
|
57
58
|
char pgstart[] = "pgstart";
|
|
58
59
|
char **apntr = argv;
|
|
59
60
|
|
|
@@ -69,12 +70,10 @@ int main(int argc, char *argv[]) {
|
|
|
69
70
|
strcpy(cname, (name == NULL ? argv[0] : ++name));
|
|
70
71
|
}
|
|
71
72
|
}
|
|
72
|
-
sprintf(prog, "%s/%s.py",
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
} else{
|
|
77
|
-
sprintf(prog, "%s/pgstart.py", dirname(file), cname);
|
|
78
|
-
execv(prog, apntr); /* pass the command to pgstart.py */
|
|
73
|
+
sprintf(prog, "%s/%s.py", fpath, cname);
|
|
74
|
+
if(is_executable(prog) == 0) {
|
|
75
|
+
sprintf(prog, "%s/pgstart.py", fpath);
|
|
76
|
+
argv = apntr;
|
|
79
77
|
}
|
|
78
|
+
execv(prog, argv); /* call Python script */
|
|
80
79
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: rda_python_setuid
|
|
3
|
-
Version: 1.0.
|
|
3
|
+
Version: 1.0.3
|
|
4
4
|
Summary: RDA Python Package to setuid for program executions as an effective or common user
|
|
5
5
|
Author-email: Zaihua Ji <zji@ucar.edu>
|
|
6
6
|
Project-URL: Homepage, https://github.com/NCAR/rda-python-setuid
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
rda_python_setuid/__init__.py,sha256=AbpHGcgLb-kRsJGnwFEktk7uzpZOCcBY74-YBdrKVGs,1
|
|
2
|
+
rda_python_setuid/pgstart.py,sha256=d7gOLjm9V3gsrV-BM64eMvgf0QULtSk-FTQpzaLEpAA,2953
|
|
3
|
+
rda_python_setuid/pywrapper.c,sha256=UczB9IX77q2M5RzbocABDkdEE5L3HgPZB5hHuWUXGys,2563
|
|
4
|
+
rda_python_setuid/pywrapper.py,sha256=8QRMr0Sui8OdwkHQyRSNyzXpyQWhwOgeEuTGO30bmN0,2353
|
|
5
|
+
rda_python_setuid-1.0.3.dist-info/licenses/LICENSE,sha256=1dck4EAQwv8QweDWCXDx-4Or0S8YwiCstaso_H57Pno,1097
|
|
6
|
+
rda_python_setuid-1.0.3.dist-info/METADATA,sha256=UL0-swzaR-cyIrr5qyDi-Y4IH5Ywv5cclU8zgvEh_BY,733
|
|
7
|
+
rda_python_setuid-1.0.3.dist-info/WHEEL,sha256=DK49LOLCYiurdXXOXwGJm6U4DkHkg4lcxjhqwRa0CP4,91
|
|
8
|
+
rda_python_setuid-1.0.3.dist-info/entry_points.txt,sha256=mWjhY3JTnoRv5q-B0KNGSHOd_2QbKfwxH-adiT6ef8U,110
|
|
9
|
+
rda_python_setuid-1.0.3.dist-info/top_level.txt,sha256=ONMhKLagyTBktuz5dTyipSnRC0YhomTMs8eFRjM9kHQ,18
|
|
10
|
+
rda_python_setuid-1.0.3.dist-info/RECORD,,
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
rda_python_setuid/__init__.py,sha256=AbpHGcgLb-kRsJGnwFEktk7uzpZOCcBY74-YBdrKVGs,1
|
|
2
|
-
rda_python_setuid/pgstart.py,sha256=d7gOLjm9V3gsrV-BM64eMvgf0QULtSk-FTQpzaLEpAA,2953
|
|
3
|
-
rda_python_setuid/pywrapper.c,sha256=T6KeW7Xh4aI6Bn4m2hRzOlzkPTtRLZ6F_pyb5qsqKHc,2605
|
|
4
|
-
rda_python_setuid/pywrapper.py,sha256=8QRMr0Sui8OdwkHQyRSNyzXpyQWhwOgeEuTGO30bmN0,2353
|
|
5
|
-
rda_python_setuid-1.0.2.dist-info/licenses/LICENSE,sha256=1dck4EAQwv8QweDWCXDx-4Or0S8YwiCstaso_H57Pno,1097
|
|
6
|
-
rda_python_setuid-1.0.2.dist-info/METADATA,sha256=ePFnyvPP7aXVZt7CjAjmvzaHbkmsVmE7a0yKfKw_GOk,733
|
|
7
|
-
rda_python_setuid-1.0.2.dist-info/WHEEL,sha256=L0N565qmK-3nM2eBoMNFszYJ_MTx03_tQ0CQu1bHLYo,91
|
|
8
|
-
rda_python_setuid-1.0.2.dist-info/entry_points.txt,sha256=mWjhY3JTnoRv5q-B0KNGSHOd_2QbKfwxH-adiT6ef8U,110
|
|
9
|
-
rda_python_setuid-1.0.2.dist-info/top_level.txt,sha256=ONMhKLagyTBktuz5dTyipSnRC0YhomTMs8eFRjM9kHQ,18
|
|
10
|
-
rda_python_setuid-1.0.2.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|