Skip to content

Commit a0bc030

Browse files
committed
* Fixed typo leading to creation of wrong dirs in some circumstances
1 parent 748399c commit a0bc030

File tree

3 files changed

+6
-9
lines changed

3 files changed

+6
-9
lines changed

dist/autark.c

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
#define CONFIG_H
33

44
#define META_VERSION "0.9.0"
5-
#define META_REVISION "da411bd"
5+
#define META_REVISION "748399c"
66

77
#endif
88
#define _AMALGAMATE_
@@ -660,8 +660,6 @@ enum akpath_access {
660660
AKPATH_EXEC = 0x04,
661661
};
662662

663-
int path_access(const char *path, enum akpath_access access);
664-
665663
enum akpath_ftype {
666664
AKPATH_NOT_EXISTS,
667665
AKPATH_TYPE_FILE,
@@ -8895,7 +8893,7 @@ void node_product_add(struct node *n, const char *prod, char pathbuf[PATH_MAX])
88958893
while (vlist_iter_next(&iter)) {
88968894
char path[PATH_MAX];
88978895
utils_strnncpy(path, iter.item, iter.len, sizeof(path));
8898-
prod = path_normalize(prod, pathbuf);
8896+
prod = path_normalize(prod, path);
88998897
node_product_add_raw(n, prod);
89008898
}
89018899
} else {

dist/build.sh

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
# https://github.com/Softmotions/autark
77

88
META_VERSION=0.9.0
9-
META_REVISION=da411bd
9+
META_REVISION=748399c
1010
cd "$(cd "$(dirname "$0")"; pwd -P)"
1111

1212
prev_arg=""
@@ -62,7 +62,7 @@ cat <<'a292effa503b' > ${AUTARK_HOME}/autark.c
6262
#ifndef CONFIG_H
6363
#define CONFIG_H
6464
#define META_VERSION "0.9.0"
65-
#define META_REVISION "da411bd"
65+
#define META_REVISION "748399c"
6666
#endif
6767
#define _AMALGAMATE_
6868
#define _XOPEN_SOURCE 700
@@ -543,7 +543,6 @@ enum akpath_access {
543543
AKPATH_WRITE = 0x02,
544544
AKPATH_EXEC = 0x04,
545545
};
546-
int path_access(const char *path, enum akpath_access access);
547546
enum akpath_ftype {
548547
AKPATH_NOT_EXISTS,
549548
AKPATH_TYPE_FILE,
@@ -7876,7 +7875,7 @@ void node_product_add(struct node *n, const char *prod, char pathbuf[PATH_MAX])
78767875
while (vlist_iter_next(&iter)) {
78777876
char path[PATH_MAX];
78787877
utils_strnncpy(path, iter.item, iter.len, sizeof(path));
7879-
prod = path_normalize(prod, pathbuf);
7878+
prod = path_normalize(prod, path);
78807879
node_product_add_raw(n, prod);
78817880
}
78827881
} else {

script.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -859,7 +859,7 @@ void node_product_add(struct node *n, const char *prod, char pathbuf[PATH_MAX])
859859
while (vlist_iter_next(&iter)) {
860860
char path[PATH_MAX];
861861
utils_strnncpy(path, iter.item, iter.len, sizeof(path));
862-
prod = path_normalize(prod, pathbuf);
862+
prod = path_normalize(prod, path);
863863
node_product_add_raw(n, prod);
864864
}
865865
} else {

0 commit comments

Comments
 (0)